mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
cleanup[2/6]: remove set_userid()
This code is not used any more. Signed-off-by: Jan Mlder <jlmulder@xs4all.nl>
This commit is contained in:
parent
226161ee44
commit
3c8506e1b8
2 changed files with 0 additions and 11 deletions
10
core/dive.c
10
core/dive.c
|
@ -3747,16 +3747,6 @@ timestamp_t get_times()
|
||||||
return dive->when;
|
return dive->when;
|
||||||
}
|
}
|
||||||
|
|
||||||
void set_userid(const char *rUserId)
|
|
||||||
{
|
|
||||||
char *userid = strdup(rUserId);
|
|
||||||
if (strlen(userid) > 30)
|
|
||||||
userid[30] = '\0';
|
|
||||||
if (prefs.userid)
|
|
||||||
free((void *)prefs.userid);
|
|
||||||
prefs.userid = userid;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* this sets a usually unused copy of the preferences with the units
|
/* this sets a usually unused copy of the preferences with the units
|
||||||
* that were active the last time the dive list was saved to git storage
|
* that were active the last time the dive list was saved to git storage
|
||||||
* (this isn't used in XML files); storing the unit preferences in the
|
* (this isn't used in XML files); storing the unit preferences in the
|
||||||
|
|
|
@ -763,7 +763,6 @@ extern void reset_cylinders(struct dive *dive, bool track_gas);
|
||||||
extern void dump_cylinders(struct dive *dive, bool verbose);
|
extern void dump_cylinders(struct dive *dive, bool verbose);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
extern void set_userid(const char *user_id);
|
|
||||||
extern void set_informational_units(const char *units);
|
extern void set_informational_units(const char *units);
|
||||||
extern void set_git_prefs(const char *prefs);
|
extern void set_git_prefs(const char *prefs);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue