Skip to content

Commit fd90fda

Browse files
JesseCodeBoneschen ruixiang
andauthored
Remove dead code of compiler.ts (#2428)
Co-authored-by: chen ruixiang <[email protected]>
1 parent 270d00d commit fd90fda

File tree

1 file changed

+0
-35
lines changed

1 file changed

+0
-35
lines changed

src/compiler.ts

Lines changed: 0 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1707,41 +1707,6 @@ export class Compiler extends DiagnosticEmitter {
17071707
return true;
17081708
}
17091709

1710-
/** Compiles a property to a getter and potentially a setter. */
1711-
compileProperty(instance: Property): bool {
1712-
this.compilePropertyGetter(instance);
1713-
this.compilePropertySetter(instance);
1714-
return instance.is(CommonFlags.COMPILED);
1715-
}
1716-
1717-
/* Compiles the getter of the specified property. */
1718-
compilePropertyGetter(instance: Property): bool {
1719-
var getterInstance = instance.getterInstance;
1720-
if (getterInstance) {
1721-
let ret = this.compileFunction(getterInstance);
1722-
let setterInstance = instance.setterInstance;
1723-
if (getterInstance.is(CommonFlags.COMPILED) && (!setterInstance || setterInstance.is(CommonFlags.COMPILED))) {
1724-
instance.set(CommonFlags.COMPILED);
1725-
}
1726-
return ret;
1727-
}
1728-
return false;
1729-
}
1730-
1731-
/** Compiles the setter of the specified property. */
1732-
compilePropertySetter(instance: Property): bool {
1733-
var setterInstance = instance.setterInstance;
1734-
if (setterInstance) {
1735-
let ret = this.compileFunction(setterInstance);
1736-
let getterInstance = instance.getterInstance;
1737-
if (getterInstance && getterInstance.is(CommonFlags.COMPILED) && setterInstance.is(CommonFlags.COMPILED)) {
1738-
instance.set(CommonFlags.COMPILED);
1739-
}
1740-
return ret;
1741-
}
1742-
return false;
1743-
}
1744-
17451710
// === Memory ===================================================================================
17461711

17471712
/** Adds a static memory segment with the specified data. */

0 commit comments

Comments
 (0)