mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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>
This commit is contained in:
parent
544a8b9d77
commit
85f0749c85
3 changed files with 2 additions and 16 deletions
|
@ -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))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue