Revert "Project doesn't serialize non-modified buffers that don't exist on disk"

This reverts commit ec3e139632.
This commit is contained in:
probablycorey
2013-12-10 10:15:03 -08:00
parent 51ff3ec46a
commit 19da22d440
2 changed files with 0 additions and 16 deletions

View File

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