Skip to content

Commit

Permalink
openflights.js: Remove toggleControl() function
Browse files Browse the repository at this point in the history
Seemingly unused
  • Loading branch information
reedy authored Aug 11, 2023
1 parent 31ad696 commit 9f205a0
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions openflights.js
Original file line number Diff line number Diff line change
Expand Up @@ -989,18 +989,6 @@ function onAirportUnselect(airport) {
// do nothing
}

function toggleControl(element) {
for (var key in drawControls) {
var control = drawControls[key];
if (element.value == key && element.checked) {
control.activate();
} else {
control.deactivate();
onPopupClose();
}
}
}

function xmlhttpPost(strURL, id, param) {
var self = this;
var query = "";
Expand Down

0 comments on commit 9f205a0

Please sign in to comment.