summaryrefslogtreecommitdiffstats
path: root/core/parse-xml.c
diff options
context:
space:
mode:
authorGravatar Jan Mulder <jlmulder@xs4all.nl>2018-09-11 14:39:25 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2018-09-11 15:38:20 -0700
commit226161ee44b17469c83fb414f5a38f347af42417 (patch)
tree78be82051fa50825eaa0f16f558fbdc6874b166d /core/parse-xml.c
parent62a8bc73911ec70de3182126cd2bc013226de6e6 (diff)
downloadsubsurface-226161ee44b17469c83fb414f5a38f347af42417.tar.gz
cleanup[1/6]: do not set userid/save_userid_local from storage
This the first of a set of cleanups related to the removal of 2 preferences: save_userid_local and userid. The commits are ordered so that a sane running state remains, should a bisect ever lands here. Here, just read a git or XML logbook including the to be removed preferences, as existing users can have this data sitting around. The only thing done here is not to store the possibly read data for the mentioned preferences. Signed-off-by: Jan Mulder <jlmulder@xs4all.nl>
Diffstat (limited to 'core/parse-xml.c')
-rw-r--r--core/parse-xml.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/core/parse-xml.c b/core/parse-xml.c
index 5e2dcaf56..865e9675e 100644
--- a/core/parse-xml.c
+++ b/core/parse-xml.c
@@ -944,13 +944,6 @@ static void try_to_fill_sample(struct sample *sample, const char *name, char *bu
nonmatch("sample", name, buf);
}
-static void try_to_fill_userid(const char *name, char *buf)
-{
- UNUSED(name);
- if (prefs.save_userid_local)
- set_userid(buf);
-}
-
static const char *country, *city;
static void divinglog_place(char *place, uint32_t *uuid)
@@ -1382,7 +1375,6 @@ static bool entry(const char *name, char *buf)
report_datafile_version(last_xml_version);
}
if (in_userid) {
- try_to_fill_userid(name, buf);
return true;
}
if (in_settings) {
@@ -1643,7 +1635,6 @@ int parse_xml_buffer(const char *url, const char *buffer, int size,
if (!doc)
return report_error(translate("gettextFromC", "Failed to parse '%s'"), url);
- prefs.save_userid_local = false;
reset_all();
dive_start();
doc = test_xslt_transforms(doc, params);