From a86903f3d020e112a1d09a72281909623a5a547e Mon Sep 17 00:00:00 2001 From: Johan Wikman Date: Fri, 4 Mar 2016 13:10:05 +0200 Subject: [PATCH] Remove obsolete declarations. And dummy definitions as well. --- server/modules/routing/binlog/blr.c | 1 - server/modules/routing/binlog/blr_file.c | 1 - server/modules/routing/binlog/maxbinlogcheck.c | 6 ------ server/modules/routing/binlog/test/testbinlog.c | 6 ------ server/modules/routing/maxinfo/maxinfo.c | 1 - 5 files changed, 15 deletions(-) diff --git a/server/modules/routing/binlog/blr.c b/server/modules/routing/binlog/blr.c index a67a13fd6..cc777146f 100644 --- a/server/modules/routing/binlog/blr.c +++ b/server/modules/routing/binlog/blr.c @@ -113,7 +113,6 @@ extern char *create_hex_sha1_sha1_passwd(char *passwd); extern int blr_read_events_all_events(ROUTER_INSTANCE *router, int fix, int debug); void blr_master_close(ROUTER_INSTANCE *); char * blr_last_event_description(ROUTER_INSTANCE *router); -extern int MaxScaleUptime(); char *blr_get_event_description(ROUTER_INSTANCE *router, uint8_t event); /** The module object definition */ diff --git a/server/modules/routing/binlog/blr_file.c b/server/modules/routing/binlog/blr_file.c index 0331b45c9..89c4caa91 100644 --- a/server/modules/routing/binlog/blr_file.c +++ b/server/modules/routing/binlog/blr_file.c @@ -73,7 +73,6 @@ void blr_file_use_binlog(ROUTER_INSTANCE *router, char *file); int blr_file_write_master_config(ROUTER_INSTANCE *router, char *error); extern uint32_t extract_field(uint8_t *src, int bits); static void blr_format_event_size(double *event_size, char *label); -extern int MaxScaleUptime(); extern char *blr_get_event_description(ROUTER_INSTANCE *router, uint8_t event); typedef struct binlog_event_desc { diff --git a/server/modules/routing/binlog/maxbinlogcheck.c b/server/modules/routing/binlog/maxbinlogcheck.c index e8c1c6e25..6ae35e1e4 100644 --- a/server/modules/routing/binlog/maxbinlogcheck.c +++ b/server/modules/routing/binlog/maxbinlogcheck.c @@ -79,12 +79,6 @@ static struct option long_options[] = { char *binlog_check_version = "1.1.0"; -int -MaxScaleUptime() -{ -return 1; -} - int main(int argc, char **argv) { ROUTER_INSTANCE *inst; int fd; diff --git a/server/modules/routing/binlog/test/testbinlog.c b/server/modules/routing/binlog/test/testbinlog.c index 4d6687231..0e6d658d7 100644 --- a/server/modules/routing/binlog/test/testbinlog.c +++ b/server/modules/routing/binlog/test/testbinlog.c @@ -57,12 +57,6 @@ extern int blr_test_parse_change_master_command(char *input, char *error_string, extern char *blr_test_set_master_logfile(ROUTER_INSTANCE *router, char *filename, char *error); extern int blr_test_handle_change_master(ROUTER_INSTANCE* router, char *command, char *error); -int -MaxScaleUptime() -{ -return 1; -} - static struct option long_options[] = { {"debug", no_argument, 0, 'd'}, {"verbose", no_argument, 0, 'v'}, diff --git a/server/modules/routing/maxinfo/maxinfo.c b/server/modules/routing/maxinfo/maxinfo.c index 45e90382c..f00357d7c 100644 --- a/server/modules/routing/maxinfo/maxinfo.c +++ b/server/modules/routing/maxinfo/maxinfo.c @@ -532,7 +532,6 @@ starttime_row(RESULTSET *result, void *data) { int *context = (int *)data; RESULT_ROW *row; -extern time_t MaxScaleStarted; struct tm tm; static char buf[40];