]> git.street.me.uk Git - andy/viking.git/blobdiff - src/viktrack.c
Remove dependencies to gob2
[andy/viking.git] / src / viktrack.c
index f2cc1f6e35a9aa4c366c8e650b89d0994d8ce160..2607be14f8f7b34b916c37e9dbe7f9948408853d 100644 (file)
@@ -21,7 +21,6 @@
 
 #include <glib.h>
 #include <time.h>
-#include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
 #include <math.h>
@@ -480,7 +479,7 @@ void vik_track_get_total_elevation_gain(const VikTrack *tr, gdouble *up, gdouble
 gdouble *vik_track_make_speed_map ( const VikTrack *tr, guint16 num_chunks )
 {
   gdouble *v, *s, *t;
-  gdouble duration, chunk_dur, T, s_prev, s_now;
+  gdouble duration, chunk_dur;
   time_t t1, t2;
   int i, pt_count, numpts, index;
   GList *iter;
@@ -498,7 +497,7 @@ gdouble *vik_track_make_speed_map ( const VikTrack *tr, guint16 num_chunks )
     return NULL;
 
   if (duration < 0) {
-    g_warning("negative duration: unsorted trackpoint timestamps?\n");
+    g_warning("negative duration: unsorted trackpoint timestamps?");
     return NULL;
   }
   pt_count = vik_track_get_tp_count(tr);