From 1b11ed219f38d2eb10007382f45eeebbc14435fb Mon Sep 17 00:00:00 2001 From: Alon Zakai Date: Tue, 17 Sep 2013 14:01:41 -0700 Subject: remove unused type jsifying code --- src/jsifier.js | 15 --------------- 1 file changed, 15 deletions(-) (limited to 'src/jsifier.js') diff --git a/src/jsifier.js b/src/jsifier.js index c65dfdcc..c7318524 100644 --- a/src/jsifier.js +++ b/src/jsifier.js @@ -138,21 +138,6 @@ function JSify(data, functionsOnly, givenFunctions) { // Actors - // type - // FIXME: This is no longer used, we do not actually need to JSify on types. TODO: Remove this and related code - substrate.addActor('Type', { - processItem: function(item) { - var type = Types.types[item.name_]; - var niceName = toNiceIdent(item.name_); - // We might export all of Types.types, cleaner that way, but do not want slowdowns in accessing flatteners - item.JS = 'var ' + niceName + '___SIZE = ' + Types.types[item.name_].flatSize + '; // ' + item.name_ + '\n'; - if (type.needsFlattening && !type.flatFactor) { - item.JS += 'var ' + niceName + '___FLATTENER = ' + JSON.stringify(Types.types[item.name_].flatIndexes) + ';'; - } - return [item]; - } - }); - function makeEmptyStruct(type) { var ret = []; var typeData = Types.types[type]; -- cgit v1.2.3-18-g5258