mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Remove nickname from divecomputer data structure
Having it there with the model information seemed to make sense but on second thought it's the wrong spot to keep that information, especially since we were storing it in the XML file in every single dive. This change removes the nickname member from the divecomputer and makes the rest of the code reasonably self consistent. It does not add much of the new code for the new design to handle nicknames. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
eb3e879030
commit
8d2abc05f6
6 changed files with 21 additions and 26 deletions
|
@ -400,8 +400,6 @@ static void save_dc(FILE *f, struct dive *dive, struct divecomputer *dc)
|
|||
fprintf(f, " <divecomputer");
|
||||
if (dc->model)
|
||||
show_utf8(f, dc->model, " model='", "'", 1);
|
||||
if (dc->nickname && *dc->nickname)
|
||||
show_utf8(f, dc->nickname, " nickname='", "'", 1);
|
||||
if (dc->deviceid)
|
||||
fprintf(f, " deviceid='%08x'", dc->deviceid);
|
||||
if (dc->diveid)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue