summaryrefslogtreecommitdiffstats
path: root/core/dive.c
diff options
context:
space:
mode:
authorGravatar Jan Mulder <jlmulder@xs4all.nl>2018-09-11 14:33:19 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2018-09-11 15:38:20 -0700
commit3c8506e1b8d5febc396c8df6bd806ffa36f8fcdc (patch)
treee0e8910a99f82e5ab523f2a4096ee4015cd70f86 /core/dive.c
parent226161ee44b17469c83fb414f5a38f347af42417 (diff)
downloadsubsurface-3c8506e1b8d5febc396c8df6bd806ffa36f8fcdc.tar.gz
cleanup[2/6]: remove set_userid()
This code is not used any more. Signed-off-by: Jan Mlder <jlmulder@xs4all.nl>
Diffstat (limited to 'core/dive.c')
-rw-r--r--core/dive.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/core/dive.c b/core/dive.c
index a8814413a..688ccb989 100644
--- a/core/dive.c
+++ b/core/dive.c
@@ -3747,16 +3747,6 @@ timestamp_t get_times()
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
* 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