Skip to content

Commit

Permalink
remove unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
Rich-Harris committed Jun 25, 2019
1 parent 960b548 commit 607d693
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions src/compiler/compile/nodes/Text.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,5 @@ export default class Text extends Node {
constructor(component: Component, parent: INode, scope: TemplateScope, info: any) {
super(component, parent, scope, info);
this.data = info.data;

if (!component.component_options.preserveWhitespace && !/[\S\u00A0]/.test(info.data)) {
let node = parent;
while (node) {
if (node.type === 'Element' && node.name === 'pre') {
return;
}
node = node.parent;
}
}
}
}

0 comments on commit 607d693

Please sign in to comment.