🔥 Drop deprecated methods from the public API

This commit is contained in:
Antonio Scandurra
2015-09-25 17:27:14 +02:00
parent 7cd318f55a
commit 7316eb4d52
2 changed files with 2 additions and 2 deletions

View File

@@ -236,9 +236,11 @@ class TextEditorElement extends HTMLElement
setScrollBottom: (scrollBottom) ->
@component.setScrollBottom(scrollBottom)
# Essential: Scrolls the editor to the top
scrollToTop: ->
@setScrollTop(0)
# Essential: Scrolls the editor to the bottom
scrollToBottom: ->
@setScrollBottom(Infinity)

View File

@@ -2857,13 +2857,11 @@ class TextEditor extends Model
scrollToScreenPosition: (screenPosition, options) ->
@displayBuffer.scrollToScreenPosition(screenPosition, options)
# Essential: Scrolls the editor to the top
scrollToTop: ->
Grim.deprecate("This is now a view method. Call TextEditorElement::scrollToTop instead.")
atom.views.getView(this).scrollToTop()
# Essential: Scrolls the editor to the bottom
scrollToBottom: ->
Grim.deprecate("This is now a view method. Call TextEditorElement::scrollToTop instead.")