mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-01 01:23:24 +00:00
cleanup[3/6]: do not save the userid any more
Do not save the to be deleted prefences any more. Signed-off-by: Jan Mulder <jlmulder@xs4all.nl>
This commit is contained in:
parent
3c8506e1b8
commit
cc72a606bb
2 changed files with 0 additions and 11 deletions
|
@ -837,13 +837,6 @@ static void save_units(void *_b)
|
||||||
prefs.units.vertical_speed_time == SECONDS ? "SECONDS" : "MINUTES");
|
prefs.units.vertical_speed_time == SECONDS ? "SECONDS" : "MINUTES");
|
||||||
}
|
}
|
||||||
|
|
||||||
static void save_userid(void *_b)
|
|
||||||
{
|
|
||||||
struct membuffer *b = _b;
|
|
||||||
if (prefs.save_userid_local)
|
|
||||||
put_format(b, "userid %30s\n", prefs.userid);
|
|
||||||
}
|
|
||||||
|
|
||||||
static void save_one_device(void *_b, const char *model, uint32_t deviceid,
|
static void save_one_device(void *_b, const char *model, uint32_t deviceid,
|
||||||
const char *nickname, const char *serial, const char *firmware)
|
const char *nickname, const char *serial, const char *firmware)
|
||||||
{
|
{
|
||||||
|
@ -870,7 +863,6 @@ static void save_settings(git_repository *repo, struct dir *tree)
|
||||||
struct membuffer b = { 0 };
|
struct membuffer b = { 0 };
|
||||||
|
|
||||||
put_format(&b, "version %d\n", DATAFORMAT_VERSION);
|
put_format(&b, "version %d\n", DATAFORMAT_VERSION);
|
||||||
save_userid(&b);
|
|
||||||
call_for_each_dc(&b, save_one_device, false);
|
call_for_each_dc(&b, save_one_device, false);
|
||||||
cond_put_format(autogroup, &b, "autogroup\n");
|
cond_put_format(autogroup, &b, "autogroup\n");
|
||||||
save_units(&b);
|
save_units(&b);
|
||||||
|
|
|
@ -561,9 +561,6 @@ void save_dives_buffer(struct membuffer *b, const bool select_only)
|
||||||
|
|
||||||
put_format(b, "<divelog program='subsurface' version='%d'>\n<settings>\n", DATAFORMAT_VERSION);
|
put_format(b, "<divelog program='subsurface' version='%d'>\n<settings>\n", DATAFORMAT_VERSION);
|
||||||
|
|
||||||
if (prefs.save_userid_local)
|
|
||||||
put_format(b, " <userid>%30s</userid>\n", prefs.userid);
|
|
||||||
|
|
||||||
/* save the dive computer nicknames, if any */
|
/* save the dive computer nicknames, if any */
|
||||||
call_for_each_dc(b, save_one_device, select_only);
|
call_for_each_dc(b, save_one_device, select_only);
|
||||||
if (autogroup)
|
if (autogroup)
|
||||||
|
|
Loading…
Add table
Reference in a new issue