From 7d0a1285a10fcb4735c20e21d83367159402a06d Mon Sep 17 00:00:00 2001 From: Constance Okoghenun Date: Thu, 11 Jan 2018 12:21:19 +0100 Subject: [PATCH] Removed experimental feature flag unsed depenecy for profiles/preferences --- app/assets/javascripts/dispatcher.js | 9 +++------ .../javascripts/pages/profiles/preferences/index.js | 3 --- 2 files changed, 3 insertions(+), 9 deletions(-) delete mode 100644 app/assets/javascripts/pages/profiles/preferences/index.js diff --git a/app/assets/javascripts/dispatcher.js b/app/assets/javascripts/dispatcher.js index 40c4a563db9..206f5bfaa6e 100644 --- a/app/assets/javascripts/dispatcher.js +++ b/app/assets/javascripts/dispatcher.js @@ -156,11 +156,6 @@ import Activities from './activities'; const filteredSearchEnabled = gl.FilteredSearchManager && document.querySelector('.filtered-search'); switch (page) { - case 'profiles:preferences:show': - import('./pages/profiles/preferences') - .then(callDefault) - .catch(fail); - break; case 'sessions:new': new UsernameValidator(); new SigninTabsMemoizer(); @@ -512,7 +507,9 @@ import Activities from './activities'; new BlobViewer(); break; case 'help:index': - import('./pages/help').then(module => module.default()).catch(fail); + import('./pages/help') + .then(callDefault) + .catch(fail); break; case 'search:show': new Search(); diff --git a/app/assets/javascripts/pages/profiles/preferences/index.js b/app/assets/javascripts/pages/profiles/preferences/index.js deleted file mode 100644 index bc399bb7138..00000000000 --- a/app/assets/javascripts/pages/profiles/preferences/index.js +++ /dev/null @@ -1,3 +0,0 @@ -import initExperimentalFlags from '../../../experimental_flags'; - -export default () => initExperimentalFlags();