From ea9f81c605ac998368b3d1fe4dba3944f077dcfb Mon Sep 17 00:00:00 2001 From: Oliver Jowett Date: Thu, 28 Nov 2019 13:56:11 +0800 Subject: [PATCH] Remove first_message field as it's now unused. --- track.c | 3 --- track.h | 2 -- 2 files changed, 5 deletions(-) diff --git a/track.c b/track.c index a42fc76..f6168bd 100644 --- a/track.c +++ b/track.c @@ -93,9 +93,6 @@ struct aircraft *trackCreateAircraft(struct modesMessage *mm) { // don't immediately emit, let some data build up a->fatsv_last_emitted = a->fatsv_last_force_emit = messageNow(); - // Copy the first message so we can emit it later when a second message arrives. - a->first_message = *mm; - // initialize data validity ages #define F(f,s,e) do { a->f##_valid.stale_interval = (s) * 1000; a->f##_valid.expire_interval = (e) * 1000; } while (0) F(callsign, 60, 70); // ADS-B or Comm-B diff --git a/track.h b/track.h index 3d729ff..0342762 100644 --- a/track.h +++ b/track.h @@ -266,8 +266,6 @@ struct aircraft { uint64_t fatsv_last_force_emit; // time (millis) we last emitted only-on-change data struct aircraft *next; // Next aircraft in our linked list - - struct modesMessage first_message; // A copy of the first message we received for this aircraft. }; /* Mode A/C tracking is done separately, not via the aircraft list,