From 6fe52ee19e5e9cd33bd1ceab4609f31829ff2f08 Mon Sep 17 00:00:00 2001 From: Linus Torvalds Date: Mon, 26 Nov 2012 14:52:07 -0800 Subject: Simplify tripflags: remove tripflag_names[] This removes the tripflag name array, since it's not actually useful. The only information we ever save in the XML file is whether a dive is explicitly not supposed to ever be grouped with a trip ("NOTRIP"), and everything else is implicit. I'm going to simplify the trip flags further (possibly removing it entirely - like I did for dive trips already), and don't like having to maintain the tripflag_names[] array logic. Signed-off-by: Linus Torvalds Signed-off-by: Dirk Hohndel --- divelist.c | 5 ----- 1 file changed, 5 deletions(-) (limited to 'divelist.c') diff --git a/divelist.c b/divelist.c index 2d759a606..566cf0bf9 100644 --- a/divelist.c +++ b/divelist.c @@ -43,11 +43,6 @@ static struct DiveList dive_list; dive_trip_t *dive_trip_list; gboolean autogroup = FALSE; -/* this duplicate assignment of "INTRIP" causes the save_xml code - * to convert an ASSIGNED_TRIP (which is temporary in memory) to - * a statically assigned trip (INTRIP) in file */ -const char *tripflag_names[NUM_TRIPFLAGS] = { "TF_NONE", "NOTRIP", "INTRIP", "INTRIP" }; - /* * The dive list has the dive data in both string format (for showing) * and in "raw" format (for sorting purposes) -- cgit v1.2.3-70-g09d2