mirror of
https://github.com/atom/atom.git
synced 2026-04-28 03:01:47 -04:00
Remove serialization methods from editor
This commit is contained in:
committed by
probablycorey
parent
6257bcf0f5
commit
c3456dd5ac
@@ -55,11 +55,6 @@ class Editor extends View
|
||||
newSelections: null
|
||||
redrawOnReattach: false
|
||||
|
||||
@deserialize: (state) ->
|
||||
editor = new Editor(mini: state.mini, editSession: deserialize(state.editSession))
|
||||
editor.isFocused = state.isFocused
|
||||
editor
|
||||
|
||||
initialize: (editSessionOrOptions) ->
|
||||
if editSessionOrOptions instanceof EditSession
|
||||
editSession = editSessionOrOptions
|
||||
@@ -91,15 +86,6 @@ class Editor extends View
|
||||
else
|
||||
throw new Error("Must supply an EditSession or mini: true")
|
||||
|
||||
serialize: ->
|
||||
@saveScrollPositionForActiveEditSession()
|
||||
deserializer: "Editor"
|
||||
editSession: @activeEditSession.serialize()
|
||||
isFocused: @isFocused
|
||||
|
||||
copy: ->
|
||||
Editor.deserialize(@serialize(), rootView)
|
||||
|
||||
bindKeys: ->
|
||||
editorBindings =
|
||||
'core:move-left': @moveCursorLeft
|
||||
|
||||
Reference in New Issue
Block a user