[CORD-2347] Removing UserConfig as it not used and cause breakage on some browsers
Change-Id: I518fd038e8074077f3e43cdf8eba183cc1d933e5
diff --git a/src/app/service-graph/services/graph.config.ts b/src/app/service-graph/services/graph.config.ts
index 6c58c3a..7db2d97 100644
--- a/src/app/service-graph/services/graph.config.ts
+++ b/src/app/service-graph/services/graph.config.ts
@@ -16,11 +16,9 @@
import * as $ from 'jquery';
import {IXosKeyboardShortcutService} from '../../core/services/keyboard-shortcut';
-import {IXosSgConfig} from '../interfaces';
import {IXosGraphStore} from './graph.store';
export interface IXosGraphConfig {
- getUserConfig(): IXosSgConfig;
setupKeyboardShortcuts(): void;
toggleFullscreen(): void;
}
@@ -36,12 +34,6 @@
'XosGraphStore'
];
- private defaultUserConfig: IXosSgConfig = {
- labels: false
- };
-
- private userConfig: IXosSgConfig = this.defaultUserConfig;
-
constructor (
private $log: ng.ILogService,
private $cookies: ng.cookies.ICookiesService,
@@ -50,8 +42,6 @@
private XosKeyboardShortcut: IXosKeyboardShortcutService,
private XosGraphStore: IXosGraphStore
) {
- this.userConfig = this.getUserConfig();
-
}
@@ -90,13 +80,4 @@
this.$rootScope.$broadcast('xos.sg.update');
}, 500);
}
-
- public getUserConfig(): IXosSgConfig {
- let config = this.$cookies.get('xos-service-graph-user-config');
- if (!config || config.length === 0) {
- this.$cookies.put('xos-service-graph-user-config', JSON.stringify(this.defaultUserConfig));
- config = this.$cookies.get('xos-service-graph-user-config');
- }
- return JSON.parse(config);
- }
}