chore: remove deprecated touch-bar API (#15650)

This commit is contained in:
Samuel Attard 2018-11-09 17:00:19 +11:00 committed by GitHub
parent e7b2b93cee
commit edf063bae3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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 = []
}