Remove unused code (infobox isn't classed show/hide anymore)

This commit is contained in:
Bryan Housel
2017-07-04 01:22:41 -04:00
parent cb249cc28b
commit f72d5cb988
4 changed files with 0 additions and 10 deletions
-2
View File
@@ -11,8 +11,6 @@ export function uiPanelBackground(context) {
function redraw(selection) {
if (d3.selectAll('.infobox.hide').size()) return; // infobox is hidden
if (currSource !== background.baseLayerSource().name()) {
currSource = background.baseLayerSource().name();
currZoom = '';
-3
View File
@@ -88,8 +88,6 @@ export function uiPanelHistory(context) {
function redraw(selection) {
if (d3.selectAll('.infobox.hide').size()) return; // infobox is hidden
var selected = _.filter(context.selectedIDs(), function(e) { return context.hasEntity(e); }),
singular = selected.length === 1 ? selected[0] : null;
@@ -137,7 +135,6 @@ export function uiPanelHistory(context) {
}
var panel = function(selection) {
selection.call(redraw);
-2
View File
@@ -21,8 +21,6 @@ export function uiPanelLocation(context) {
function redraw(selection) {
if (d3.selectAll('.infobox.hide').size()) return; // infobox is hidden
selection.html('');
var list = selection
-3
View File
@@ -110,8 +110,6 @@ export function uiPanelMeasurement(context) {
function redraw(selection) {
if (d3.selectAll('.infobox.hide').size()) return; // infobox is hidden
var resolver = context.graph(),
selected = _.filter(context.selectedIDs(), function(e) { return context.hasEntity(e); }),
singular = selected.length === 1 ? selected[0] : null,
@@ -211,7 +209,6 @@ export function uiPanelMeasurement(context) {
}
var panel = function(selection) {
selection.call(redraw);