Rename destroyNonExistentNonModified

This commit is contained in:
probablycorey
2013-12-09 12:06:44 -08:00
parent ec3e139632
commit 22ec8c3a75

View File

@@ -43,7 +43,7 @@ class Project extends telepath.Model
# Private: Called by telepath.
beforePersistence: ->
@destroyUnretainedBuffers()
@destroyNonExistentNonModified()
@destroyUnmodifiedNonExistentBuffers()
# Public: Register an opener for project files.
#
@@ -78,7 +78,7 @@ class Project extends telepath.Model
destroyUnretainedBuffers: ->
buffer.destroy() for buffer in @getBuffers() when not buffer.isRetained()
destroyNonExistentNonModified: ->
destroyUnmodifiedNonExistentBuffers: ->
buffer.destroy() for buffer in @getBuffers() when not buffer.isModified() and not buffer.file.exists()
# Public: Returns the {Git} repository if available.