Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

remove commented out code #1576

Benjamin King47d9ed8040c4
diff --git a/web/js/modules/image-download/util.js b/web/js/modules/image-download/util.js
index fb5e51306..416d08383 100644
--- a/web/js/modules/image-download/util.js
+++ b/web/js/modules/image-download/util.js
@@ -68,7 +68,7 @@ export function imageUtilCalculateResolution(
}
/*
- * Retieves active layers by day
+ * Retrieves active layers by day
*
* @method getLayersForDay
* @private
@@ -90,7 +90,7 @@ export function imageUtilGetLayers(products, proj) {
return layers;
}
/*
- * Retieves opacities from palettes
+ * Retrieves opacities from palettes
*
* @method getOpacities
* @private
@@ -130,7 +130,7 @@ export function imageUtilGetConversionFactor(proj) {
}
/*
- * Retieves coordinates from pixel
+ * Retrieves coordinates from pixel
*
* @method getCoords
* @private
diff --git a/web/js/modules/layers/util.js b/web/js/modules/layers/util.js
index 56f252e56..d1d55d3c6 100644
--- a/web/js/modules/layers/util.js
+++ b/web/js/modules/layers/util.js
@@ -1,5 +1,4 @@
-import { cloneDeep as lodashCloneDeep } from 'lodash';
-import { get } from 'redux-location-state/lib/helpers';
+import { cloneDeep as lodashCloneDeep, get } from 'lodash';
import util from '../../util/util';
export function getLayersParameterSetup(
diff --git a/web/js/modules/map/util.js b/web/js/modules/map/util.js
index 59350f4d3..f26373ba2 100644
--- a/web/js/modules/map/util.js
+++ b/web/js/modules/map/util.js
@@ -43,13 +43,6 @@ export function getMapParameterSetup(
};
}
-// const LEADING_EXTENT = getLeadingExtent();
-
-// export function serializeExtent(arr) {
-// if (!arr || !arr.length || arr.length !== 4) return LEADING_EXTENT;
-// return encode(arr.join(','));
-// }
-
export function getLeadingExtent() {
var curHour = util.now().getUTCHours();
@@ -69,38 +62,3 @@ export function getLeadingExtent() {
return [minLon, minLat, maxLon, maxLat];
}
-
-// export function parseMapExtent(str) {
-// const extent = str.split(',').map(parseFloat);
-// var valid = mapIsExtentValid(extent);
-// if (!valid) {
-// util.warn('Invalid extent: ' + extent);
-// return getLeadingExtent();
-// } else {
-// return extent;
-// }
-// }
-// /**
-// * Determines if an exent object contains valid values.
-// *
-// * @method isExtentValid
-// * @static
-// *
-// * @param extent {OpenLayers.Bound} The extent to check.
-// *
-// * @return {boolean} False if any of the values is NaN, otherwise returns
-// * true.
-// */
-// export function mapIsExtentValid(extent) {
-// if (lodashIsUndefined(extent)) {
-// return false;
-// }
-// var valid = true;
-// lodashEach(extent, function(value) {
-// if (isNaN(value)) {
-// valid = false;
-// return false;
-// }
-// });
-// return valid;
-// }
diff --git a/web/js/modules/modal/customs.js b/web/js/modules/modal/customs.js
deleted file mode 100644
index 97934f148..000000000
--- a/web/js/modules/modal/customs.js
+++ /dev/null
@@ -1,46 +0,0 @@
-import ImageDownload from '../../containers/image-download';
-import Projection from '../../containers/projection';
-import InfoList from '../../containers/info';
-import ShareLinks from '../../containers/share';
-
-export const customProps = {
- TOOLBAR_PROJECTION: {
- headerText: null,
- type: 'toolbar',
- modalClassName: 'toolbar-list-modal toolbar-modal',
- backdrop: true,
- bodyComponent: Projection,
- offsetRight: '40px'
- },
- TOOLBAR_SHARE_LINK: {
- headerText: 'Copy Link to Share',
- type: 'toolbar',
- backdrop: false,
- offsetRight: '198px',
- modalClassName: 'toolbar-share-modal toolbar-modal toolbar-medium-modal',
- clickableBehindModal: true,
- wrapClassName: 'clickable-behind-modal',
- bodyComponent: ShareLinks
- },
- TOOLBAR_INFO: {
- headerText: null,
- backdrop: false,
- type: 'toolbar',
- modalClassName: 'toolbar-list-modal toolbar-modal',
- offsetRight: '10px',
- bodyComponent: InfoList
- },
- TOOLBAR_SNAPSHOT: {
- headerText: 'Take a Snapshot',
- backdrop: false,
- wrapClassName: 'clickable-behind-modal',
- type: 'selection',
- offsetRight: '70px',
- modalClassName: 'toolbar-snapshot-modal toolbar-modal toolbar-medium-modal',
- bodyComponent: ImageDownload
- }
- // NOTIFICATION_LIST_MODAL: {
- // headerText: 'Notifications',
- // bodyComponent: Notifications
- // }
-};