Changeset: Move out obsolete code

This commit is contained in:
Richard Hansen 2021-03-04 20:25:57 -05:00
parent 2155e216a6
commit eb495e9ea2
2 changed files with 25 additions and 30 deletions

View file

@ -70,20 +70,6 @@ exports.parseNum = (str) => parseInt(str, 36);
*/
exports.numToString = (num) => num.toString(36).toLowerCase();
/**
* Converts stuff before $ to base 10
* @obsolete not really used anywhere??
* @param cs {string} the string
* @return integer
*/
exports.toBaseTen = (cs) => {
const dollarIndex = cs.indexOf('$');
const beforeDollar = cs.substring(0, dollarIndex);
const fromDollar = cs.substring(dollarIndex);
return beforeDollar.replace(/[0-9a-z]+/g, (s) => String(exports.parseNum(s))) + fromDollar;
};
/**
* ==================== Changeset Functions =======================
*/
@ -207,11 +193,6 @@ exports.opString = (op) => {
return assem.toString();
};
/**
* Used just for debugging
*/
exports.stringOp = (str) => exports.opIterator(str).next();
/**
* Used to check if a Changeset if valid
* @param cs {Changeset} Changeset to be checked