diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2012-11-25 19:09:04 -0800 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2012-11-26 09:28:34 -0800 |
commit | 85f0749c854b014d6f8759426fa981eb9418ca18 (patch) | |
tree | de2380f613d7cde63543c7f6f7301c180705f5cf /parse-xml.c | |
parent | 544a8b9d7742befe8af768eca00c254b8a11cfb1 (diff) | |
download | subsurface-85f0749c854b014d6f8759426fa981eb9418ca18.tar.gz |
Remove 'when_from_file' field from dive trip
It had become a write-only field (apart from some now useless debugging)
when simplifying the remove_autogen_trips() function.
So remove it.
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'parse-xml.c')
-rw-r--r-- | parse-xml.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/parse-xml.c b/parse-xml.c index 5f1dfed82..1d08ca009 100644 --- a/parse-xml.c +++ b/parse-xml.c @@ -1201,10 +1201,8 @@ static void try_to_fill_trip(dive_trip_t **dive_trip_p, const char *name, char * if (MATCH(".date", divedate, &dive_trip->when)) return; - if (MATCH(".time", divetime, &dive_trip->when)) { - dive_trip->when_from_file = dive_trip->when; + if (MATCH(".time", divetime, &dive_trip->when)) return; - } if (MATCH(".location", utf8_string, &dive_trip->location)) return; if (MATCH(".notes", utf8_string, &dive_trip->notes)) |