Index: lib/compat.js |
=================================================================== |
--- a/lib/compat.js |
+++ b/lib/compat.js |
@@ -80,49 +80,16 @@ |
Cu.import.resources = new Map(); |
Cu.import.resources.set("XPCOMUtils", { |
generateQI() {} |
}); |
// |
-// Fake nsIFile implementation for our I/O |
-// |
- |
-function FakeFile(path) |
-{ |
- this.path = path; |
-} |
-FakeFile.prototype = |
-{ |
- get leafName() |
- { |
- return this.path; |
- }, |
- set leafName(value) |
- { |
- this.path = value; |
- }, |
- append(path) |
- { |
- this.path += path; |
- }, |
- clone() |
- { |
- return new FakeFile(this.path); |
- }, |
- get parent() |
- { |
- return {create() {}}; |
- }, |
- normalize() {} |
-}; |
- |
-// |
// Services.jsm module emulation |
// |
Cu.import.resources.set("Services", { |
obs: { |
addObserver() {}, |
removeObserver() {} |
}, |