mirror of
https://github.com/atom/atom.git
synced 2026-01-22 21:38:10 -05:00
Remove unused fsUtils.split()
This commit is contained in:
@@ -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")
|
||||
|
||||
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user