mirror of
https://github.com/atom/atom.git
synced 2026-04-06 03:02:13 -04:00
Centralize deprecation warnings about getUri in Pane::addItem
This commit is contained in:
@@ -658,7 +658,6 @@ class Workspace extends Model
|
||||
if typeof item.getURI is 'function'
|
||||
uri = item.getURI()
|
||||
else if typeof item.getUri is 'function'
|
||||
deprecate("Pane items should implement `::getURI` instead of `::getUri`.")
|
||||
uri = item.getUri()
|
||||
|
||||
if uri?
|
||||
@@ -669,7 +668,6 @@ class Workspace extends Model
|
||||
if typeof item.getURI is 'function'
|
||||
uri = item.getURI()
|
||||
else if typeof item.getUri is 'function'
|
||||
deprecate("Pane items should implement `::getURI` instead of `::getUri`.")
|
||||
uri = item.getUri()
|
||||
|
||||
if uri?
|
||||
|
||||
Reference in New Issue
Block a user