Skip to content

Commit

Permalink
Commenting out blocks of code that are not used.
Browse files Browse the repository at this point in the history
  • Loading branch information
Gozala committed May 12, 2011
1 parent 25ded3f commit 4ea2878
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions lib/fs.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ const { Cc, Ci, components: { Constructor: CC } } = require("chrome");
// `Namespace` declared by E4X so `const` fails.
let { Namespace } = require("./namespace");

const ioService = CC("@mozilla.org/network/io-service;1", "nsIIOService")();
const ioUtils = CC("@mozilla.org/io-util;1", "nsIIOUtil")();
// const ioService = CC("@mozilla.org/network/io-service;1", "nsIIOService")();
// const ioUtils = CC("@mozilla.org/io-util;1", "nsIIOUtil")();

const RawFile = CC("@mozilla.org/file/local;1", "nsILocalFile",
"initWithPath");
Expand All @@ -20,16 +20,16 @@ const FileInputStream = CC("@mozilla.org/network/file-input-stream;1",
"nsIFileInputStream", "init");
const StreamCopier = CC("@mozilla.org/network/async-stream-copier;1",
"nsIAsyncStreamCopier", "init");
const StringStream = CC("@mozilla.org/io/string-input-stream;1",
"nsIStringInputStream", "setData");
// const StringStream = CC("@mozilla.org/io/string-input-stream;1",
// "nsIStringInputStream", "setData");

const BinaryInputStream = CC("@mozilla.org/binaryinputstream;1",
"nsIBinaryInputStream", "setInputStream");
const BinaryOutputStream = CC("@mozilla.org/binaryoutputstream;1",
"nsIBinaryOutputStream", "setOutputStream");
const StreamPump = CC("@mozilla.org/network/input-stream-pump;1",
"nsIInputStreamPump", "init");
const StreamPipe = CC("@mozilla.org/pipe;1", "nsIPipe", "init");
// const StreamPipe = CC("@mozilla.org/pipe;1", "nsIPipe", "init");

const { createOutputTransport, createInputTransport } =
CC("@mozilla.org/network/stream-transport-service;1",
Expand Down Expand Up @@ -87,12 +87,14 @@ function defer(wrapped) {
function getFileName(file) {
return file.QueryInterface(Ci.nsIFile).leafName;
}
/*
function getFileURI(file) {
return ioService.newFileURI(file);
}
function getFileChannel(file) {
return ioService.newChannelFromURI(getFileURI(file));
}
*/
function remove(path, recursive) {
return new RawFile(path).remove(recursive || false);
}
Expand Down

0 comments on commit 4ea2878

Please sign in to comment.