From 740fcce338a00e7ec8d1c4701229d46b5463b974 Mon Sep 17 00:00:00 2001 From: Jan Mulder Date: Tue, 11 Sep 2018 16:04:20 +0200 Subject: cleanup[6/6]: remove actual preferences And finnaly, get rid of the definition in the overall struct. And one usage of the preferences was still around. Signed-off-by: Jan Mulder --- core/pref.h | 2 -- core/subsurfacestartup.c | 1 - 2 files changed, 3 deletions(-) (limited to 'core') diff --git a/core/pref.h b/core/pref.h index 8b8feb449..86636b878 100644 --- a/core/pref.h +++ b/core/pref.h @@ -96,8 +96,6 @@ struct preferences { short cloud_timeout; short cloud_verification_status; bool save_password_local; - bool save_userid_local; - const char *userid; // ********** DiveComputer ********** dive_computer_prefs_t dive_computer; diff --git a/core/subsurfacestartup.c b/core/subsurfacestartup.c index 6e52b5156..42e9aef7b 100644 --- a/core/subsurfacestartup.c +++ b/core/subsurfacestartup.c @@ -299,7 +299,6 @@ void copy_prefs(struct preferences *src, struct preferences *dest) dest->default_cylinder = copy_string(src->default_cylinder); dest->cloud_base_url = copy_string(src->cloud_base_url); dest->cloud_git_url = copy_string(src->cloud_git_url); - dest->userid = copy_string(src->userid); dest->proxy_host = copy_string(src->proxy_host); dest->proxy_user = copy_string(src->proxy_user); dest->proxy_pass = copy_string(src->proxy_pass); -- cgit v1.2.3-70-g09d2