Skip to content

Commit e12a48f

Browse files
committed
remove unused function
1 parent 53341d3 commit e12a48f

1 file changed

Lines changed: 1 addition & 6 deletions

File tree

jwctrl.cpp

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -353,11 +353,6 @@ int JwCtrl::FindNearestJetways(Plane& plane, std::vector<JwCtrl>& nearest_jws) {
353353
return nearest_jws.size();
354354
}
355355

356-
// det of 2 column vectors x,y
357-
static inline float det(float x1, float x2, float y1, float y2) {
358-
return x1 * y2 - x2 * y1;
359-
}
360-
361356
// check whether extended nearest njw would crash into parked njw2
362357
bool JwCtrl::CollisionCheck(const JwCtrl& njw2) {
363358
static constexpr float kJwWidth = 3.0f; // m, we assume a width of the jetway for the collision check
@@ -391,11 +386,11 @@ bool JwCtrl::CollisionCheck(const JwCtrl& njw2) {
391386
return false; // degenerate case, start and end are the same
392387

393388
ortho_dir = (0.5f * kJwWidth / len) * Vec2{-dir.z, dir.x};
394-
LogMsg("ortho_dir for nearest jw: (%0.2f, %0.2f)", ortho_dir.x, ortho_dir.z);
395389
Vec2 s2_left = s2 + ortho_dir;
396390
Vec2 e2_left = e2 + ortho_dir;
397391
Vec2 s2_right = s2 - ortho_dir;
398392
Vec2 e2_right = e2 - ortho_dir;
393+
399394
LogMsg("expanded line segments for collision check: start1_left: (%0.2f, %0.2f), end1_left: (%0.2f, %0.2f) and start1_right: (%0.2f, %0.2f), end1_right: (%0.2f, %0.2f)",
400395
s1_left.x, s1_left.z, e1_left.x, e1_left.z, s1_right.x, s1_right.z, e1_right.x, e1_right.z);
401396
LogMsg("expanded line segments for collision check: start2_left: (%0.2f, %0.2f), end2_left: (%0.2f, %0.2f) and start2_right: (%0.2f, %0.2f), end2_right: (%0.2f, %0.2f)",

0 commit comments

Comments
 (0)