From c865293da3dda89698cb2fe155f000fe7310a046 Mon Sep 17 00:00:00 2001 From: "gijskruitbosch%gmail.com" Date: Thu, 9 Oct 2008 20:12:19 +0000 Subject: [PATCH] Bug 458061 - Opening Venkman shouldn't touch java r=ajvincent@gmail.com (Alex Vincent) Venkman Only. NPOTFFB. git-svn-id: svn://10.0.0.236/trunk@254576 18797224-902f-48f8-a5cc-f745e15eee43 --- .../resources/content/venkman-utils.js | 25 ------------------- 1 file changed, 25 deletions(-) diff --git a/mozilla/extensions/venkman/resources/content/venkman-utils.js b/mozilla/extensions/venkman/resources/content/venkman-utils.js index f5eea454e57..d88e1b946d6 100644 --- a/mozilla/extensions/venkman/resources/content/venkman-utils.js +++ b/mozilla/extensions/venkman/resources/content/venkman-utils.js @@ -56,13 +56,6 @@ else { if (typeof dump == "function") dumpln = function (str) {dump (str + "\n");} - else if (jsenv.HAS_RHINO) - { - dumpln = function (str) { - var out = java.lang.System.out; - out.println(str); out.flush(); - } - } else dumpln = function () {} /* no suitable function */ } @@ -117,14 +110,6 @@ if (DEBUG) { dd = function (){}; } -var jsenv = new Object(); -jsenv.HAS_SECURITYMANAGER = ((typeof netscape == "object") && - (typeof netscape.security == "object")); -jsenv.HAS_XPCOM = ((typeof Components == "object") && - (typeof Components.classes == "object")); -jsenv.HAS_JAVA = (typeof java == "object"); -jsenv.HAS_RHINO = (typeof defineClass == "function"); -jsenv.HAS_DOCUMENT = (typeof document == "object"); /* Dumps an object in tree format, recurse specifiec the the number of objects * to recurse, compress is a boolean that can uncompress (true) the output @@ -762,9 +747,6 @@ function renameProperty (obj, oldname, newname) function newObject(contractID, iface) { - if (!jsenv.HAS_XPCOM) - return null; - var obj = Components.classes[contractID].createInstance(); var rv; @@ -1026,10 +1008,6 @@ function randomRange (min, max) function getStackTrace () { - - if (!jsenv.HAS_XPCOM) - return "No stack trace available."; - var frame = Components.stack.caller; var str = ""; @@ -1046,9 +1024,6 @@ function getStackTrace () function getInterfaces (cls) { - if (!jsenv.HAS_XPCOM) - return null; - var rv = new Object(); var e;