From 2977fe002407b6f86efa4ba5216f567082f33e45 Mon Sep 17 00:00:00 2001 From: daurnimator Date: Mon, 8 May 2017 12:32:08 +1000 Subject: Move string functions to centralised lstring.js --- src/lstate.js | 12 ------------ 1 file changed, 12 deletions(-) (limited to 'src/lstate.js') diff --git a/src/lstate.js b/src/lstate.js index fee308c..f2e17cd 100644 --- a/src/lstate.js +++ b/src/lstate.js @@ -71,18 +71,6 @@ class global_State { this.mt = new Array(LUA_NUMTAGS); } - intern(stringArray) { - // TODO: when weak value maps are available - // let key = stringArray.map(e => `${e}|`).join(''); - - // if (!this.strt.has(key)) - // this.strt.set(key, new lobject.TValue(CT.LUA_TLNGSTR, stringArray)); - - // return this.strt.get(key); - - return new lobject.TValue(CT.LUA_TLNGSTR, stringArray); - } - } -- cgit v1.2.3-54-g00ecf