From 4f65cb099a0ff47e09d012c0b7973bac4da7efdf Mon Sep 17 00:00:00 2001 From: Kevin Sawicki Date: Wed, 12 Jun 2013 20:44:15 -0700 Subject: [PATCH] Remove unused fsUtils.split() --- spec/stdlib/fs-utils-spec.coffee | 5 ----- src/stdlib/fs-utils.coffee | 9 --------- 2 files changed, 14 deletions(-) diff --git a/spec/stdlib/fs-utils-spec.coffee b/spec/stdlib/fs-utils-spec.coffee index f55ad1f32..0710a78ca 100644 --- a/spec/stdlib/fs-utils-spec.coffee +++ b/spec/stdlib/fs-utils-spec.coffee @@ -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") diff --git a/src/stdlib/fs-utils.coffee b/src/stdlib/fs-utils.coffee index cffcfb0e9..eb8fc81dd 100644 --- a/src/stdlib/fs-utils.coffee +++ b/src/stdlib/fs-utils.coffee @@ -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))