Skip to content

Commit 745bbdb

Browse files
Mark JessopMark Jessop
authored andcommitted
Cleanup un-necessary function prototype changes
1 parent 63c7639 commit 745bbdb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

js/tracker.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1768,9 +1768,9 @@ function updateVehicleInfo(vcallsign, newPosition) {
17681768
if(wvar.mode != "Position" && vehicle.graph_data.length) {
17691769
var can = $('.vehicle'+vehicle.uuid+' .graph');
17701770
if (vehicle.vehicle_type!="car") {
1771-
drawAltitudeProfile(can.get(0), can.get(1), vehicle.graph_data[0], vehicle.max_alt, vehicle.max_alt_time, true, vehicle.callsign);
1771+
drawAltitudeProfile(can.get(0), can.get(1), vehicle.graph_data[0], vehicle.max_alt, true);
17721772
} else {
1773-
drawAltitudeProfile(can.get(0), can.get(1), vehicle.graph_data[0], vehicle.max_alt, vehicle.max_alt_time, true, vehicle.callsign);
1773+
drawAltitudeProfile(can.get(0), can.get(1), vehicle.graph_data[0], vehicle.max_alt, true);
17741774
}
17751775
}
17761776

@@ -2213,7 +2213,7 @@ function updatePolyline(vcallsign) {
22132213
}
22142214
}
22152215

2216-
function drawAltitudeProfile(c1, c2, series, alt_max, alt_max_time, chase, name) {
2216+
function drawAltitudeProfile(c1, c2, series, alt_max, chase) {
22172217
// Updated 2023-04-10 to make use of position time data to set
22182218
// the x-coordinate. This helps resolve issues with backlog vs live data.
22192219
alt_max = (alt_max < 2000) ? 2000 : alt_max;

0 commit comments

Comments
 (0)