]> git.ipfire.org Git - thirdparty/chrony.git/commitdiff
refclock: remove unused struct MedianFilter
authorYury Vostrikov <mon@unformed.ru>
Mon, 4 Jul 2022 17:37:52 +0000 (19:37 +0200)
committerMiroslav Lichvar <mlichvar@redhat.com>
Mon, 11 Jul 2022 08:20:44 +0000 (10:20 +0200)
Filtering was moved to a separate source file in commit
c498c21fad35 ("refclock: split off median filter). It looks like
MedianFilter struct somehow survived the split. Remove it to reduce
confusion.

refclock.c

index e91828aa6c14b4151705511746b7b7d8c2e4185a..761c001be6b08192a1f854f4f7b3b98209a59823 100644 (file)
@@ -55,21 +55,6 @@ struct FilterSample {
   struct timespec sample_time;
 };
 
-struct MedianFilter {
-  int length;
-  int index;
-  int used;
-  int last;
-  int avg_var_n;
-  double avg_var;
-  double max_var;
-  struct FilterSample *samples;
-  int *selected;
-  double *x_data;
-  double *y_data;
-  double *w_data;
-};
-
 struct RCL_Instance_Record {
   RefclockDriver *driver;
   void *data;