mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-16 22:03:37 +02:00
Remove unused code (infobox isn't classed show/hide anymore)
This commit is contained in:
@@ -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 = '';
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user