From 24018fe9bdfa52ab0fe369955853bd5899ff5a4e Mon Sep 17 00:00:00 2001 From: chen ruixiang Date: Wed, 10 Aug 2022 16:09:40 +0800 Subject: [PATCH] Fix: remove dead code of compiler.ts --- src/compiler.ts | 35 ----------------------------------- 1 file changed, 35 deletions(-) diff --git a/src/compiler.ts b/src/compiler.ts index c5741d2436..058a7311f7 100644 --- a/src/compiler.ts +++ b/src/compiler.ts @@ -1707,41 +1707,6 @@ export class Compiler extends DiagnosticEmitter { return true; } - /** Compiles a property to a getter and potentially a setter. */ - compileProperty(instance: Property): bool { - this.compilePropertyGetter(instance); - this.compilePropertySetter(instance); - return instance.is(CommonFlags.COMPILED); - } - - /* Compiles the getter of the specified property. */ - compilePropertyGetter(instance: Property): bool { - var getterInstance = instance.getterInstance; - if (getterInstance) { - let ret = this.compileFunction(getterInstance); - let setterInstance = instance.setterInstance; - if (getterInstance.is(CommonFlags.COMPILED) && (!setterInstance || setterInstance.is(CommonFlags.COMPILED))) { - instance.set(CommonFlags.COMPILED); - } - return ret; - } - return false; - } - - /** Compiles the setter of the specified property. */ - compilePropertySetter(instance: Property): bool { - var setterInstance = instance.setterInstance; - if (setterInstance) { - let ret = this.compileFunction(setterInstance); - let getterInstance = instance.getterInstance; - if (getterInstance && getterInstance.is(CommonFlags.COMPILED) && setterInstance.is(CommonFlags.COMPILED)) { - instance.set(CommonFlags.COMPILED); - } - return ret; - } - return false; - } - // === Memory =================================================================================== /** Adds a static memory segment with the specified data. */