Skip to content

Commit 623fc98

Browse files
committed
clean old code
1 parent 0362751 commit 623fc98

File tree

2 files changed

+0
-20
lines changed

2 files changed

+0
-20
lines changed

build/tests.webpack.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
var context = require.context('../web', true, /(-test\.jsx?)|(-test-chrome\.jsx?)$/);
2-
// var context = require.context('../web/client/utils/mapinfo/__tests__', true, /(cog-test\.jsx?)$/);
32
context.keys().forEach(context);
43
module.exports = context;

web/client/utils/cog/LayerUtils.js

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -111,25 +111,6 @@ export const getLayerConfig = ({ url, layer, controller }) => {
111111
.catch(() => ({...layer}));
112112
};
113113

114-
/*
115-
* collect layer instances to expose specific 3rd party lib methods
116-
*/
117-
const LayersInstances = {};
118-
119-
export const addLayerInstance = (id, layer, lib = 'openlayers') => {
120-
LayersInstances[`${lib}_${id}`] = layer;
121-
};
122-
123-
export const getLayerInstance = (id, lib = 'openlayers') => {
124-
if (!id) return null;
125-
return LayersInstances[`${lib}_${id}`];
126-
};
127-
128-
export const removeLayerInstance = (id, lib = 'openlayers') => {
129-
delete LayersInstances[`${lib}_${id}`];
130-
};
131-
132-
133114
LayerUtils = {
134115
getTiffImageryProvider,
135116
getProjectionFromGeoKeys,

0 commit comments

Comments
 (0)