Remove unused methods in Project

This commit is contained in:
Kevin Sawicki 2013-12-03 11:29:35 -08:00
parent aa52428c26
commit 4998fdda85

View File

@ -105,18 +105,6 @@ class Project extends telepath.Model
getRootDirectory: ->
@rootDirectory
# Public: Determines if a path is ignored via Atom configuration.
isPathIgnored: (path) ->
for segment in path.split("/")
ignoredNames = atom.config.get("core.ignoredNames") or []
return true if _.contains(ignoredNames, segment)
@ignoreRepositoryPath(path)
# Public: Determines if a given path is ignored via repository configuration.
ignoreRepositoryPath: (repositoryPath) ->
atom.config.get("core.hideGitIgnoredFiles") and @repo?.isPathIgnored(path.join(@getPath(), repositoryPath))
# Public: Given a uri, this resolves it relative to the project directory. If
# the path is already absolute or if it is prefixed with a scheme, it is
# returned unchanged.
@ -193,12 +181,6 @@ class Project extends telepath.Model
getBuffers: ->
new Array(@buffers.getValues()...)
isPathModified: (filePath) ->
@findBufferForPath(@resolve(filePath))?.isModified()
findBufferForPath: (filePath) ->
_.find @buffers.getValues(), (buffer) -> buffer.getPath() == filePath
# Private: Only to be used in specs
bufferForPathSync: (filePath) ->
absoluteFilePath = @resolve(filePath)