mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-26 02:16:16 -04:00
Changeset: Move out obsolete code
This commit is contained in:
parent
2155e216a6
commit
eb495e9ea2
2 changed files with 25 additions and 30 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue