diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2012-12-21 20:00:20 -0800 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2012-12-21 20:58:47 -0800 |
commit | 8d2abc05f60cb9a5ec79db9a215fe8aa97e0c311 (patch) | |
tree | 1a3d4fe6f9abc3206cdf8a115edb954842e64e29 /save-xml.c | |
parent | eb3e879030b0a29cc3f40d8df3e3eb6f7120c9ea (diff) | |
download | subsurface-8d2abc05f60cb9a5ec79db9a215fe8aa97e0c311.tar.gz |
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>
Diffstat (limited to 'save-xml.c')
-rw-r--r-- | save-xml.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/save-xml.c b/save-xml.c index 0ec6f27d0..fb9eb413a 100644 --- a/save-xml.c +++ b/save-xml.c @@ -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) |