Remove unused function definitions

This commit is contained in:
Bill Bauer 2024-10-13 08:10:36 -05:00
parent dca4153b3f
commit 0f2b95b146
6 changed files with 12 additions and 23 deletions

View File

@ -98,12 +98,12 @@ struct SHARED_MEM {
struct MSG_QUEUE {
std::vector<std::string> 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);

View File

@ -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() {

View File

@ -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 {

View File

@ -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);
};

View File

@ -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);

View File

@ -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*);