From 5cf512cf63a38e0e737c02287314e84b496a706e Mon Sep 17 00:00:00 2001 From: Oliver Jowett Date: Sat, 2 Jul 2016 18:10:15 +0100 Subject: [PATCH] Clean out some debug, dead code. --- public_html/planeObject.js | 18 ++---------------- public_html/script.js | 1 - 2 files changed, 2 insertions(+), 17 deletions(-) diff --git a/public_html/planeObject.js b/public_html/planeObject.js index a1a8909..13be440 100644 --- a/public_html/planeObject.js +++ b/public_html/planeObject.js @@ -277,7 +277,7 @@ PlaneObject.prototype.updateIcon = function() { var styleKey = opacity + '!' + rotation; if (this.markerStyle === null || this.markerIcon === null || this.markerSvgKey != svgKey) { - console.log(this.icao + " new icon and style " + this.markerSvgKey + " -> " + svgKey); + //console.log(this.icao + " new icon and style " + this.markerSvgKey + " -> " + svgKey); this.markerIcon = new ol.style.Icon({ anchor: MarkerIcons[type].anchor, @@ -302,7 +302,7 @@ PlaneObject.prototype.updateIcon = function() { } if (this.markerStyleKey != styleKey) { - console.log(this.icao + " new rotation"); + //console.log(this.icao + " new rotation"); this.markerIcon.setRotation(rotation * Math.PI / 180.0); this.markerIcon.setOpacity(opacity); this.markerStyleKey = styleKey; @@ -407,21 +407,7 @@ PlaneObject.prototype.updateMarker = function(moved) { this.marker.hex = this.icao; this.marker.setStyle(this.markerStyle); PlaneIconFeatures.push(this.marker); - - /* FIXME - // Trap clicks for this marker. - google.maps.event.addListener(this.marker, 'click', selectPlaneByHex.bind(undefined,this.icao,false)); - google.maps.event.addListener(this.marker, 'dblclick', selectPlaneByHex.bind(undefined,this.icao,true)); - */ } - - - /* - // Setting the marker title - var title = (this.flight === null || this.flight.length == 0) ? this.icao : (this.flight+' ('+this.icao+')'); - if (title !== this.marker.title) - this.marker.setTitle(title); - */ }; // Update our planes tail line, diff --git a/public_html/script.js b/public_html/script.js index ea9de91..e0c3f33 100644 --- a/public_html/script.js +++ b/public_html/script.js @@ -411,7 +411,6 @@ function initialize_map() { // Add home marker if requested if (SitePosition) { - console.log("setting up site position"); var markerStyle = new ol.style.Style({ image: new ol.style.Circle({ radius: 7,