Remove duplicate scrollPastEnd setter and getter

This commit is contained in:
Max Brunsfeld
2016-08-11 12:14:11 -07:00
parent 0c7750f560
commit fb6b463818

View File

@@ -3355,20 +3355,6 @@ class TextEditor extends Model
scrollEvent = {screenRange, options}
@emitter.emit "did-request-autoscroll", scrollEvent
getScrollPastEnd: ->
if @scrollPastEnd?
@scrollPastEnd
else
@config.get('editor.scrollPastEnd', scope: @getRootScopeDescriptor())
setScrollPastEnd: (scrollPastEnd) ->
if scrollPastEnd isnt @scrollPastEnd
@scrollPastEnd = scrollPastEnd
@emitter.emit('did-change-scroll-past-end')
onDidChangeScrollPastEnd: (callback) ->
@emitter.on('did-change-scroll-past-end', callback)
getHorizontalScrollbarHeight: ->
Grim.deprecate("This is now a view method. Call TextEditorElement::getHorizontalScrollbarHeight instead.")