mirror of
https://github.com/atom/atom.git
synced 2026-04-28 03:01:47 -04:00
🔥 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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user