From 4668f43991ee1c1909f97428bf6516fc87321ec2 Mon Sep 17 00:00:00 2001 From: Chris Wanstrath Date: Wed, 9 Nov 2011 14:21:03 -0800 Subject: [PATCH] not ready for this yet --- src/editor.coffee | 19 ------------------- src/window.coffee | 2 -- 2 files changed, 21 deletions(-) diff --git a/src/editor.coffee b/src/editor.coffee index 26a37a6bd..6e833632c 100644 --- a/src/editor.coffee +++ b/src/editor.coffee @@ -14,10 +14,6 @@ class Editor extends Document buffers: {} - openPathsKey: "editor.openPaths.#{window.path}" - - focusedPathKey: "editor.focusedPath.#{window.path}" - html: $ "
" constructor: -> @@ -78,13 +74,6 @@ class Editor extends Document catch e null - restoreOpenBuffers: -> - openPaths = atom.storage.get @openPathsKey, [] - focusedPath = atom.storage.get(@focusedPathKey) - - @addBuffer path for path in openPaths - @focusBuffer focusedPath if focusedPath - addBuffer: (path) -> throw "#{@constructor.name}: Cannot create buffer from a directory `#{path}`" if fs.isDirectory path @@ -101,11 +90,6 @@ class Editor extends Document @buffers[path] = buffer - openPaths = atom.storage.get @openPathsKey, [] - unless path in openPaths - openPaths.push path - atom.storage.set @openPathsKey, openPaths - buffer.on 'change', -> buffer.$atom_dirty = true atom.trigger "editor:bufferAdd", path @@ -138,8 +122,6 @@ class Editor extends Document delete @buffers[path] - openPaths = atom.storage.get @openPathsKey, [] - atom.storage.set @openPathsKey, _.without openPaths, path atom.trigger "editor:bufferRemove", path if path is @activePath @@ -158,7 +140,6 @@ class Editor extends Document buffer = @buffers[path] or @addBuffer path @ace.setSession buffer - atom.storage.set @focusedPathKey, path atom.trigger "editor:bufferFocus", path save: (path) -> diff --git a/src/window.coffee b/src/window.coffee index 5e8325890..cfe6ea493 100644 --- a/src/window.coffee +++ b/src/window.coffee @@ -36,8 +36,6 @@ windowAdditions = @loadKeyBindings() @loadSettings() - @editor.restoreOpenBuffers() - $atomController.window.makeKeyWindow shutdown: ->