From e25f23e94cef0ee10ac1eb616270153e48fcaa41 Mon Sep 17 00:00:00 2001 From: Harvey Kandola Date: Thu, 14 Dec 2017 20:02:49 +0000 Subject: [PATCH] removed TOc dead code --- gui/app/components/document/document-toc.js | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/gui/app/components/document/document-toc.js b/gui/app/components/document/document-toc.js index 884031f6..28debf23 100644 --- a/gui/app/components/document/document-toc.js +++ b/gui/app/components/document/document-toc.js @@ -14,9 +14,8 @@ import { schedule } from '@ember/runloop' import { inject as service } from '@ember/service'; import Component from '@ember/component'; import tocUtil from '../../utils/toc'; -import NotifierMixin from '../../mixins/notifier'; -export default Component.extend(NotifierMixin, { +export default Component.extend({ documentService: service('document'), document: {}, folder: {}, @@ -37,12 +36,6 @@ export default Component.extend(NotifierMixin, { didReceiveAttrs() { this._super(...arguments); - this.set('showToc', is.not.undefined(this.get('pages')) && this.get('pages').get('length') > 0); - - // if (is.not.null(this.get('currentPageId'))) { - // this.send('onEntryClick', this.get('currentPageId')); - // } - this.setState(this.get('currentPageId')); }, @@ -173,9 +166,6 @@ export default Component.extend(NotifierMixin, { target.setAttribute('data-y', y); target.style.position = 'fixed'; } - - // this is used later in the resizing and gesture demos - // window.dragMoveListener = dragMoveListener; }, // Controls what user can do with the toc (left sidebar)