]> git.street.me.uk Git - andy/viking.git/blobdiff - src/gpspoint.c
Remove dependencies to gob2
[andy/viking.git] / src / gpspoint.c
index 7279b2326f3ecf3328313895dbb919f8b56564d2..933ff5b987b52868094aef8146becc599bc18ed8 100644 (file)
@@ -194,11 +194,8 @@ void a_gpspoint_read_file(VikTrwLayer *trw, FILE *f ) {
     if (line_type == GPSPOINT_TYPE_WAYPOINT && line_name)
     {
       VikWaypoint *wp = vik_waypoint_new();
-      gint i = strlen(line_name);
       wp->visible = line_visible;
       wp->altitude = line_altitude;
-      while ( i-- )
-        line_name[i] = toupper(line_name[i]); /* TODO: check for acceptable chars */
 
       vik_coord_load_from_latlon ( &(wp->coord), coord_mode, &line_latlon );
 
@@ -227,16 +224,12 @@ void a_gpspoint_read_file(VikTrwLayer *trw, FILE *f ) {
     else if (line_type == GPSPOINT_TYPE_TRACK && line_name)
     {
       VikTrack *pl = vik_track_new();
-      gint i = strlen(line_name);
 
       /* Thanks to Peter Jones for this Fix */
       if (!line_name) line_name = g_strdup("UNK");
 
       pl->visible = line_visible;
 
-      while ( i-- )
-        line_name[i] = toupper(line_name[i]);
-
       if ( line_comment )
       {
         vik_track_set_comment ( pl, line_comment );