From 607d69389494cd669341a51ffb5d41481b1f671d Mon Sep 17 00:00:00 2001 From: Richard Harris Date: Mon, 24 Jun 2019 22:32:16 -0400 Subject: [PATCH] remove unused code --- src/compiler/compile/nodes/Text.ts | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/src/compiler/compile/nodes/Text.ts b/src/compiler/compile/nodes/Text.ts index 17883a0cdb..eff3efe06e 100644 --- a/src/compiler/compile/nodes/Text.ts +++ b/src/compiler/compile/nodes/Text.ts @@ -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; - } - } } }