mirror of
https://github.com/atom/atom.git
synced 2026-04-06 03:02:13 -04:00
Remove project serialization
This commit is contained in:
@@ -14,8 +14,6 @@ BufferedProcess = require 'buffered-process'
|
||||
# of directories and files that you can operate on.
|
||||
module.exports =
|
||||
class Project
|
||||
registerDeserializer(this)
|
||||
|
||||
@openers: []
|
||||
|
||||
@registerOpener: (opener) ->
|
||||
@@ -33,13 +31,6 @@ class Project
|
||||
|
||||
### Internal ###
|
||||
|
||||
serialize: ->
|
||||
deserializer: 'Project'
|
||||
path: @getPath()
|
||||
|
||||
@deserialize: (state) ->
|
||||
new Project(state.path)
|
||||
|
||||
destroy: ->
|
||||
editSession.destroy() for editSession in @getEditSessions()
|
||||
|
||||
|
||||
@@ -75,7 +75,6 @@ window.startConfigWindow = ->
|
||||
|
||||
window.unloadEditorWindow = ->
|
||||
return if not project and not rootView
|
||||
atom.setWindowState('project', project.serialize())
|
||||
atom.setWindowState('syntax', syntax.serialize())
|
||||
atom.setWindowState('rootView', rootView.serialize())
|
||||
atom.deactivatePackages()
|
||||
@@ -119,7 +118,7 @@ window.deserializeEditorWindow = ->
|
||||
windowState = atom.getWindowState()
|
||||
|
||||
atom.packageStates = windowState.packageStates ? {}
|
||||
window.project = deserialize(windowState.project) ? new Project(pathToOpen)
|
||||
window.project = new Project(pathToOpen)
|
||||
window.rootView = deserialize(windowState.rootView) ? new RootView
|
||||
|
||||
if !pathToOpen
|
||||
|
||||
Reference in New Issue
Block a user