Remove unused fsUtils.split()

This commit is contained in:
Kevin Sawicki
2013-06-12 20:44:15 -07:00
parent 0e52a3bcee
commit 4f65cb099a
2 changed files with 0 additions and 14 deletions

View File

@@ -31,11 +31,6 @@ describe "fsUtils", ->
expect(fsUtils.exists("")).toBe false
expect(fsUtils.exists(null)).toBe false
describe ".split(path)", ->
it "returns path components", ->
expect(fsUtils.split("/a/b/c.txt")).toEqual ["", "a", "b", "c.txt"]
expect(fsUtils.split("a/b/c.txt")).toEqual ["a", "b", "c.txt"]
describe ".makeTree(path)", ->
beforeEach ->
fsUtils.remove("/tmp/a") if fsUtils.exists("/tmp/a")

View File

@@ -110,15 +110,6 @@ module.exports =
read: (path) ->
String fs.readFileSync(path)
# Returns an array of path components. If the path is absolute, the first
# component will be an indicator of the root of the file system; for file
# systems with drives (such as Windows), this is the drive identifier with a
# colon, like "c:"; on Unix, this is an empty string "". The intent is that
# calling "join.apply" with the result of "split" as arguments will
# reconstruct the path.
split: (path) ->
path.split("/")
# Open, write, flush, and close a file, writing the given content.
writeSync: (path, content) ->
mkdirp.sync(Path.dirname(path))