From b4fa06eb3ff5b3b5a554eaee822377644ec6a90c Mon Sep 17 00:00:00 2001 From: x <okp57855@psoxs.com> Date: Thu, 7 Feb 2019 17:54:28 +1300 Subject: [PATCH] Remove unsed functions. --- devNotes/Useful JS Function Documentation.txt | 4 +--- src/js/utilJS.js | 8 -------- 2 files changed, 1 insertion(+), 11 deletions(-) diff --git a/devNotes/Useful JS Function Documentation.txt b/devNotes/Useful JS Function Documentation.txt index cb4a6092865..3c990ca0ac7 100644 --- a/devNotes/Useful JS Function Documentation.txt +++ b/devNotes/Useful JS Function Documentation.txt @@ -346,6 +346,4 @@ UtilJS [script] removeDuplicates() - Takes an array and returns a new array without duplicate entries - HSM() - outputs a value based off of the PC's hacking skill. - - ndefJS() and defJS() - quick JS ports of sugarcube's def and ndef respectively. \ No newline at end of file + HSM() - outputs a value based off of the PC's hacking skill. \ No newline at end of file diff --git a/src/js/utilJS.js b/src/js/utilJS.js index bbeb6a8e005..6df54795fab 100644 --- a/src/js/utilJS.js +++ b/src/js/utilJS.js @@ -1272,12 +1272,4 @@ window.HSM = function() { else if (V.PC.hacking <= 75) {return 0.85;} else if (V.PC.hacking <= 100) {return 0.80;} else {return 0.75;} -}; - -window.ndefJS = function(input) { - if (input === undefined || input === null) { return true; } else { return false } -}; - -window.defJS = function(input) { - if (input !== undefined) { return true; } else { return false } }; \ No newline at end of file -- GitLab