Skip to content

Commit adc239c

Browse files
committed
removing debug function from CodeZoneManager
Signed-off-by: Elijah Cúchulainn Reid <[email protected]>
1 parent ca092d2 commit adc239c

File tree

1 file changed

+10
-11
lines changed

1 file changed

+10
-11
lines changed

server/src/sas/CodeZoneManager.ts

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2027,17 +2027,16 @@ export class CodeZoneManager {
20272027
const zone = this._zone(stack, context);
20282028
return zone.type;
20292029
}
2030-
2031-
// Helper function for debugging zone types
2032-
static getZoneTypeName(zone: number): string {
2033-
for (const [attr, value] of Object.entries(CodeZoneManager.ZONE_TYPE)) {
2034-
if (value === zone) {
2035-
return attr;
2036-
}
2037-
}
2038-
return `UNKNOWN(${zone})`;
2039-
}
2040-
2030+
//only for debug
2031+
//function _getZoneName(zone) {
2032+
// for(var attr in ZONE_TYPE) {
2033+
// if (ZONE_TYPE.hasOwnProperty(attr)) {
2034+
// if (ZONE_TYPE[attr] === zone) {
2035+
// return attr;
2036+
// }
2037+
// }
2038+
// }
2039+
//}
20412040
private _datasetOptions(context: Context) {
20422041
let token1 = this._getNextEx(context),
20432042
equal,

0 commit comments

Comments
 (0)