Skip to content

Commit

Permalink
remove redundant Molpify and MolpifyCountdown
Browse files Browse the repository at this point in the history
  • Loading branch information
LucidCrux committed Feb 10, 2014
1 parent 24378a2 commit 195ab27
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 20 deletions.
12 changes: 0 additions & 12 deletions gui.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,19 +50,7 @@ Molpy.DefineGUI = function() {
}
return molp;
}
function Molpify(number, raftcastle, shrinkify) {
var molp = InnerMolpify(number,raftcastle, shrinkify);
if (Molpy.options.european && !molp.match(/Math\.PI/)) {
molp = molp.replace('.','~');
molp = molp.replace(/,/g,'.');
molp = molp.replace('~',',');
}
return molp;
}

function MolpifyCountdown(mNP, p) {
return mNP == 0 ? 'ever' : mNP >= 1000 ? Molpify(mNP / 1000, p) + 'NP' : Molpify(mNP) + 'mNP'
}
Molpy.IsChildOf = function(child, parent) {
if(!child) return;
var current = child;
Expand Down
17 changes: 9 additions & 8 deletions redundancy.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,15 +70,16 @@ function InnerMolpify(number, raftcastle, shrinkify) {
}
return molp;
}
function Molpify(number, raftcastle, shrinkify) {
var molp = InnerMolpify(number,raftcastle, shrinkify);
if (Molpy.options.european && !molp.match(/Math\.PI/)) {
molp = molp.replace('.','~');
molp = molp.replace(/,/g,'.');
molp = molp.replace('~',',');
}
return molp;

function Molpify(number, raftcastle, shrinkify) {
var molp = InnerMolpify(number,raftcastle, shrinkify);
if (Molpy.options.european && !molp.match(/Math\.PI/)) {
molp = molp.replace('.','~');
molp = molp.replace(/,/g,'.');
molp = molp.replace('~',',');
}
return molp;
}

function MolpifyCountdown(mNP, p) {
return mNP == 0 ? 'ever' : mNP >= 1000 ? Molpify(mNP / 1000, p) + 'NP' : Molpify(mNP) + 'mNP'
Expand Down

0 comments on commit 195ab27

Please sign in to comment.