From 0f2b95b1464a2e98c47953d6c57975bd2f599a01 Mon Sep 17 00:00:00 2001 From: Bill Bauer Date: Sun, 13 Oct 2024 08:10:36 -0500 Subject: [PATCH] Remove unused function definitions --- lib/app_ipc.h | 11 ++++------- lib/common_defs.h | 1 - lib/gui_rpc_client.h | 18 ++++++++---------- lib/prefs.h | 3 --- lib/str_util.h | 1 - lib/url.h | 1 - 6 files changed, 12 insertions(+), 23 deletions(-) diff --git a/lib/app_ipc.h b/lib/app_ipc.h index d26c2328c6..4fceb18419 100644 --- a/lib/app_ipc.h +++ b/lib/app_ipc.h @@ -98,12 +98,12 @@ struct SHARED_MEM { struct MSG_QUEUE { std::vector msgs; char name[256]; - double last_block; // last time we found message channel full - void init(char*); + double last_block; // last time we found message channel full + void init(char*); void msg_queue_send(const char*, MSG_CHANNEL& channel); void msg_queue_poll(MSG_CHANNEL& channel); - int msg_queue_purge(const char*); - bool timeout(double); + int msg_queue_purge(const char*); + bool timeout(double); }; #define DEFAULT_CHECKPOINT_PERIOD 300 @@ -233,8 +233,6 @@ typedef struct GRAPHICS_INFO GRAPHICS_INFO; int write_init_data_file(FILE* f, APP_INIT_DATA&); int parse_init_data_file(FILE* f, APP_INIT_DATA&); -int write_graphics_file(FILE* f, GRAPHICS_INFO* gi); -int parse_graphics_file(FILE* f, GRAPHICS_INFO* gi); // filenames used in the slot directory // @@ -251,7 +249,6 @@ int parse_graphics_file(FILE* f, GRAPHICS_INFO* gi); // other filenames #define PROJECT_DIR "projects" -extern int boinc_link(const char* phys_name, const char* logical_name); extern int boinc_resolve_filename_s(const char*, std::string&); extern std::string resolve_soft_link(const char* project_dir, const char* file); extern void url_to_project_dir(char* url, char* dir, int dirsize); diff --git a/lib/common_defs.h b/lib/common_defs.h index 472cf4f96c..ea98c5040b 100644 --- a/lib/common_defs.h +++ b/lib/common_defs.h @@ -334,7 +334,6 @@ struct TIME_STATS { double total_gpu_active_duration; // time GPU computation allowed - void write(MIOFILE&); int parse(XML_PARSER&); void print(); TIME_STATS() { diff --git a/lib/gui_rpc_client.h b/lib/gui_rpc_client.h index 8204ec69b2..c3d94e8349 100644 --- a/lib/gui_rpc_client.h +++ b/lib/gui_rpc_client.h @@ -383,7 +383,7 @@ struct GR_PROXY_INFO { std::string socks5_user_passwd; bool socks5_remote_dns; - std::string noproxy_hosts; + std::string noproxy_hosts; GR_PROXY_INFO(); @@ -494,7 +494,6 @@ struct NOTICES { NOTICES(); - void print(); void clear(); }; @@ -559,7 +558,7 @@ struct PROJECT_CONFIG { bool sched_stopped; // scheduler disabled bool web_stopped; // DB-driven web functions disabled int min_client_version; - std::string error_msg; + std::string error_msg; bool terms_of_use_is_html; std::string terms_of_use; // if present, show this text in an "accept terms of use?" dialog @@ -594,7 +593,7 @@ struct ACCOUNT_IN { struct ACCOUNT_OUT { int error_num; - std::string error_msg; + std::string error_msg; std::string authenticator; ACCOUNT_OUT(); @@ -610,16 +609,16 @@ struct CC_STATUS { bool manager_must_quit; int task_suspend_reason; // bitmap, see common_defs.h int task_mode; // always/auto/never; see common_defs.h - int task_mode_perm; // same, but permanent version - double task_mode_delay; // time until perm becomes actual + int task_mode_perm; // same, but permanent version + double task_mode_delay; // time until perm becomes actual int gpu_suspend_reason; int gpu_mode; int gpu_mode_perm; - double gpu_mode_delay; + double gpu_mode_delay; int network_suspend_reason; int network_mode; int network_mode_perm; - double network_mode_delay; + double network_mode_delay; bool disallow_attach; bool simple_gui_only; int max_event_log_lines; @@ -732,7 +731,6 @@ struct RPC_CLIENT { int get_statistics(PROJECTS&); int network_available(); int get_project_init_status(PROJECT_INIT_STATUS& pis); - int report_device_status(DEVICE_STATUS&); // the following are asynch operations. // Make the first call to start the op, @@ -773,7 +771,7 @@ struct RPC_CLIENT { int get_app_config(const char* url, APP_CONFIGS& conf); int set_app_config(const char* url, APP_CONFIGS& conf); int get_daily_xfer_history(DAILY_XFER_HISTORY&); - int set_language(const char*); + int set_language(const char*); }; struct RPC { diff --git a/lib/prefs.h b/lib/prefs.h index 03401009cc..3d0a356eef 100644 --- a/lib/prefs.h +++ b/lib/prefs.h @@ -123,9 +123,6 @@ struct WEEK_PREFS { void set(int day, double start, double end); void set(int day, TIME_SPAN* time); void unset(int day); - -protected: - void copy(const WEEK_PREFS& original); }; diff --git a/lib/str_util.h b/lib/str_util.h index 22908d8568..008e1862ac 100644 --- a/lib/str_util.h +++ b/lib/str_util.h @@ -29,7 +29,6 @@ extern void strcpy_overlap(char*, const char*); extern int ndays_to_string(double x, int smallest_timescale, char *buf); extern void nbytes_to_string(double nbytes, double total_bytes, char* str, int len); extern int parse_command_line(char*, char**); -extern void c2x(char *what); extern void strip_whitespace(char *str); extern void strip_whitespace(std::string&); extern void strip_quotes(char *str); diff --git a/lib/url.h b/lib/url.h index 943c9a21dc..1d472044ab 100644 --- a/lib/url.h +++ b/lib/url.h @@ -39,7 +39,6 @@ extern void unescape_url(std::string& url); extern void unescape_url(char *url, int len); extern void escape_url(std::string& url); extern void escape_url(const char *in, char*out, int out_size); -extern void escape_url_unsage(char *in, char *out); extern void escape_url_readable(char* in, char* out); extern void escape_project_url(char *in, char* out); extern bool valid_master_url(char*);