chore: remove deprecated touch-bar API (#15650)
This commit is contained in:
parent
e7b2b93cee
commit
edf063bae3
1 changed files with 0 additions and 6 deletions
|
@ -31,12 +31,6 @@ class TouchBar extends EventEmitter {
|
|||
|
||||
let { items, escapeItem } = options
|
||||
|
||||
// FIXME Support array as first argument, remove in 2.0
|
||||
if (Array.isArray(options)) {
|
||||
items = options
|
||||
escapeItem = null
|
||||
}
|
||||
|
||||
if (!Array.isArray(items)) {
|
||||
items = []
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue