mirror of
https://github.com/atom/atom.git
synced 2026-01-23 22:08:08 -05:00
Keep around atom.config.unobserve no-op
This commit is contained in:
@@ -1158,6 +1158,9 @@ withoutEmptyObjects = (object) ->
|
||||
resultObject = object
|
||||
resultObject
|
||||
|
||||
Config::unobserve = (keyPath) ->
|
||||
Grim.deprecate 'Config::unobserve no longer does anything. Call `.dispose()` on the object returned by Config::observe instead.'
|
||||
|
||||
if Grim.includeDeprecatedAPIs
|
||||
EmitterMixin = require('emissary').Emitter
|
||||
EmitterMixin.includeInto(Config)
|
||||
@@ -1207,9 +1210,6 @@ if Grim.includeDeprecatedAPIs
|
||||
Grim.deprecate 'Config::toggle is no longer supported. Please remove from your code.'
|
||||
@set(keyPath, not @get(keyPath))
|
||||
|
||||
Config::unobserve = (keyPath) ->
|
||||
Grim.deprecate 'Config::unobserve no longer does anything. Call `.dispose()` on the object returned by Config::observe instead.'
|
||||
|
||||
Config::addScopedSettings = (source, selector, value, options) ->
|
||||
Grim.deprecate("Use ::set instead")
|
||||
settingsBySelector = {}
|
||||
|
||||
Reference in New Issue
Block a user