aboutsummaryrefslogtreecommitdiff
path: root/chrome/code/xpcom.js
diff options
context:
space:
mode:
authorEinar Egilsson2011-09-04 22:53:16 +0200
committerEinar Egilsson2011-09-04 22:53:16 +0200
commit4b612baf4f29178214edec130856d83a40bf473d (patch)
tree20e36e3fcf7a24e829640c2fd605622f14af0edc /chrome/code/xpcom.js
parent8fb65cf8aeaaf66636698310c0168929fc1a2ce0 (diff)
Total restructuring of files and deletion of old files
Diffstat (limited to 'chrome/code/xpcom.js')
-rw-r--r--chrome/code/xpcom.js28
1 files changed, 0 insertions, 28 deletions
diff --git a/chrome/code/xpcom.js b/chrome/code/xpcom.js
deleted file mode 100644
index e81f58e..0000000
--- a/chrome/code/xpcom.js
+++ /dev/null
@@ -1,28 +0,0 @@
-
-Ci = Components.interfaces;
-Cc = Components.classes;
-Cr = Components.results;
-
-const ServerSocket = Components.Constructor("@mozilla.org/network/server-socket;1", "nsIServerSocket", "init");
-const ScriptableInputStream = Components.Constructor("@mozilla.org/scriptableinputstream;1", "nsIScriptableInputStream", "init");
-const FileInputStream = Components.Constructor("@mozilla.org/network/file-input-stream;1", "nsIFileInputStream", "init");
-const ConverterInputStream = Components.Constructor("@mozilla.org/intl/converter-input-stream;1", "nsIConverterInputStream", "init");
-const LocalFile = Components.Constructor("@mozilla.org/file/local;1", "nsILocalFile", "initWithPath");
-const FilePicker = Components.Constructor("@mozilla.org/filepicker;1", "nsIFilePicker", "init");
-const FilePickerMode = { save : Ci.nsIFilePicker.modeSave, open : Ci.nsIFilePicker.modeOpen };
-
-function Service(className, interfaceName) {
- return Cc[className].getService(Ci[interfaceName]);
-}
-
-const PromptService = Service("@mozilla.org/embedcomp/prompt-service;1","nsIPromptService");
-const IOService = Service("@mozilla.org/network/io-service;1","nsIIOService");
-const LocaleService = Service("@mozilla.org/intl/nslocaleservice;1", "nsILocaleService");
-const StringBundleService = Service("@mozilla.org/intl/stringbundle;1", "nsIStringBundleService");
-
-var EXPORTED_SYMBOLS = [];
-for (var name in this) {
- if (name != 'Service' && name != 'QueryInterface' && name != 'name' && name != 'EXPORTED_SYMBOLS') {
- EXPORTED_SYMBOLS.push(name);
- }
-}