Skip to content

Commit a41a646

Browse files
committed
chore: remove commented code
1 parent 16d0237 commit a41a646

File tree

1 file changed

+0
-24
lines changed
  • packages/@lwc/ssr-compiler/src/compile-js/decorators

1 file changed

+0
-24
lines changed

packages/@lwc/ssr-compiler/src/compile-js/decorators/index.ts

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -34,27 +34,3 @@ export function validateUniqueDecorator(decorators: EsDecorator[]) {
3434
throw generateError(api, DecoratorErrors.API_AND_TRACK_DECORATOR_CONFLICT);
3535
}
3636
}
37-
38-
// function validateUniqueDecorator(decorators: EsDecorator[]) {
39-
// if (decorators.length < 2) {
40-
// return;
41-
// }
42-
43-
// const expressions = decorators.map(({ expression }) => expression);
44-
45-
// const wire = expressions.find(
46-
// (expr) => is.callExpression(expr) && is.identifier(expr.callee, { name: 'wire' })
47-
// );
48-
49-
// const api = expressions.find((expr) => is.identifier(expr, { name: 'api' }));
50-
51-
// if (wire && api) {
52-
// throw generateError(wire, DecoratorErrors.CONFLICT_WITH_ANOTHER_DECORATOR, 'api');
53-
// }
54-
55-
// const track = expressions.find((expr) => is.identifier(expr, { name: 'track' }));
56-
57-
// if (wire && track) {
58-
// throw generateError(wire, DecoratorErrors.CONFLICT_WITH_ANOTHER_DECORATOR, 'track');
59-
// }
60-
// }

0 commit comments

Comments
 (0)