🔥 Remove defensive assertion

We're not throwing this exception anywhere else, so we might as well delete it 
from here.

/cc: @nathansobo
This commit is contained in:
Antonio Scandurra
2016-04-06 15:48:44 +02:00
parent ffd3b1829d
commit 4f28f9f3f8

View File

@@ -1429,8 +1429,6 @@ class TextEditor extends Model
#
# Returns a {Point}.
screenPositionForBufferPosition: (bufferPosition, options) ->
throw new Error("This TextEditor has been destroyed") if @isDestroyed()
if options?.clip?
Grim.deprecate("The `clip` parameter has been deprecated and will be removed soon. Please, use `clipDirection` instead.")
options.clipDirection ?= options.clip