diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2008-05-26 14:08:17 +0200 |
---|---|---|
committer | Jelmer Vernooij <jelmer@samba.org> | 2008-05-26 14:08:17 +0200 |
commit | 3a76da248d2c3b8cf90ade4a441dd99c4583183f (patch) | |
tree | 9fbc6a9824f965209f970ae10e6f32decaddc4ee /source4/scripting/libjs/base.js | |
parent | 1b6396f114f29cabe6b640118f3258e54ceeab32 (diff) | |
download | samba-3a76da248d2c3b8cf90ade4a441dd99c4583183f.tar.gz samba-3a76da248d2c3b8cf90ade4a441dd99c4583183f.tar.bz2 samba-3a76da248d2c3b8cf90ade4a441dd99c4583183f.zip |
Remove unused libjs functions.
(This used to be commit 657a87fecc2e79e3c3f66c551e392cc341bca8cf)
Diffstat (limited to 'source4/scripting/libjs/base.js')
-rw-r--r-- | source4/scripting/libjs/base.js | 53 |
1 files changed, 0 insertions, 53 deletions
diff --git a/source4/scripting/libjs/base.js b/source4/scripting/libjs/base.js index d861073a07..790dfeb3e0 100644 --- a/source4/scripting/libjs/base.js +++ b/source4/scripting/libjs/base.js @@ -21,48 +21,6 @@ function printf() } /* - helper function to setup a rpc io object, ready for input -*/ -function irpcObj() -{ - var o = new Object(); - o.input = new Object(); - return o; -} - -/* - check that a status result is OK -*/ -function check_status_ok(status) -{ - if (status.is_ok != true) { - printVars(status); - } - assert(status.is_ok == true); -} - -/* - check that two arrays are equal -*/ -function check_array_equal(a1, a2) -{ - assert(a1.length == a2.length); - for (i=0; i<a1.length; i++) { - assert(a1[i] == a2[i]); - } -} - -/* - check that an array is all zeros -*/ -function check_array_zero(a) -{ - for (i=0; i<a.length; i++) { - assert(a[i] == 0); - } -} - -/* substitute strings of the form ${NAME} in str, replacing with substitutions from subobj */ @@ -90,14 +48,3 @@ function substitute_var(str, subobj) } return join("", list); } - -/* - return "s" if a number should be shown as plural -*/ -function plural(n) -{ - if (n == 1) { - return ""; - } - return "s"; -} |