From 1a6568d8e286c4dc03f20f4427463524c9283a84 Mon Sep 17 00:00:00 2001 From: Austin Burdine Date: Thu, 28 Apr 2016 12:22:54 -0500 Subject: [PATCH] remove unused feature controller --- core/client/app/controllers/feature.js | 37 -------------------------- 1 file changed, 37 deletions(-) delete mode 100644 core/client/app/controllers/feature.js diff --git a/core/client/app/controllers/feature.js b/core/client/app/controllers/feature.js deleted file mode 100644 index e706475c74..0000000000 --- a/core/client/app/controllers/feature.js +++ /dev/null @@ -1,37 +0,0 @@ -import Ember from 'ember'; - -const {Controller, PromiseProxyMixin, computed} = Ember; -const {alias} = computed; - -export default Controller.extend(PromiseProxyMixin, { - - setting: alias('content'), - - labs: computed('isSettled', 'setting.labs', function () { - let value = {}; - - if (this.get('isFulfilled')) { - try { - value = JSON.parse(this.get('setting.labs') || {}); - } catch (err) { - value = {}; - } - } - - return value; - }), - - publicAPI: computed('config.publicAPI', 'labs.publicAPI', function () { - return this.get('config.publicAPI') || this.get('labs.publicAPI'); - }), - - init() { - this._super(...arguments); - - let promise = this.store.query('setting', {type: 'blog,theme'}).then((settings) => { - return settings.get('firstObject'); - }); - - this.set('promise', promise); - } -});