From d464bd91fb4fdac6ace75a2682708adfc1096778 Mon Sep 17 00:00:00 2001 From: Kevin Easton Date: Thu, 24 Mar 2016 11:21:09 +1100 Subject: [PATCH] Remove unnecessary inclusions of Functions display_msg() and check_sync() are only used in numbers.c, so they can be static. Remove inclusions of from .c files that don't need it. --- include/numbers.h | 2 -- source/alias.c | 1 - source/commands2.c | 1 - source/funny.c | 1 - source/irc.c | 1 - source/misc.c | 1 - source/names.c | 1 - source/numbers.c | 4 ++-- source/tcl.c | 1 - source/userlist.c | 1 - source/whowas.c | 1 - 11 files changed, 2 insertions(+), 13 deletions(-) diff --git a/include/numbers.h b/include/numbers.h index ae7920b..27c85a2 100644 --- a/include/numbers.h +++ b/include/numbers.h @@ -14,8 +14,6 @@ #define __numbers_h_ char *numeric_banner(void); -void display_msg(char *, char **); void numbered_command(char *, int, char **); -int check_sync(int, char *, char *, char *, char *, ChannelList *); #endif /* __numbers_h_ */ diff --git a/source/alias.c b/source/alias.c index ab1295f..315f900 100644 --- a/source/alias.c +++ b/source/alias.c @@ -24,7 +24,6 @@ CVS_REVISION(alias_c) #include "ircaux.h" #include "names.h" #include "notify.h" -#include "numbers.h" #include "output.h" #include "parse.h" #include "screen.h" diff --git a/source/commands2.c b/source/commands2.c index f966508..0084125 100644 --- a/source/commands2.c +++ b/source/commands2.c @@ -52,7 +52,6 @@ CVS_REVISION(commands2_c) #include "output.h" #include "exec.h" #include "notify.h" -#include "numbers.h" #include "status.h" #include "if.h" #include "help.h" diff --git a/source/funny.c b/source/funny.c index 4d6648e..2835041 100644 --- a/source/funny.c +++ b/source/funny.c @@ -23,7 +23,6 @@ CVS_REVISION(funny_c) #include "lastlog.h" #include "ircterm.h" #include "output.h" -#include "numbers.h" #include "parse.h" #include "status.h" #include "misc.h" diff --git a/source/irc.c b/source/irc.c index 638397e..59eb07f 100644 --- a/source/irc.c +++ b/source/irc.c @@ -43,7 +43,6 @@ CVS_REVISION(irc_c) #include "history.h" #include "exec.h" #include "notify.h" -#include "numbers.h" #include "mail.h" #include "debug.h" #include "newio.h" diff --git a/source/misc.c b/source/misc.c index 68519c5..e6aa7aa 100644 --- a/source/misc.c +++ b/source/misc.c @@ -53,7 +53,6 @@ CVS_REVISION(misc_c) #include "output.h" #include "exec.h" #include "notify.h" -#include "numbers.h" #include "status.h" #include "list.h" #include "timer.h" diff --git a/source/names.c b/source/names.c index 7480f91..5744d4a 100644 --- a/source/names.c +++ b/source/names.c @@ -25,7 +25,6 @@ CVS_REVISION(names_c) #include "lastlog.h" #include "list.h" #include "output.h" -#include "numbers.h" #include "userlist.h" #include "timer.h" #include "input.h" diff --git a/source/numbers.c b/source/numbers.c index 0ff0078..a31c0c4 100644 --- a/source/numbers.c +++ b/source/numbers.c @@ -85,7 +85,7 @@ char *numeric_banner(void) return (thing); } -int check_sync(int comm, char *channel, char *nick, char *whom, char *bantime, ChannelList *chan) +static int check_sync(int comm, char *channel, char *nick, char *whom, char *bantime, ChannelList *chan) { ChannelList *tmp = NULL; BanList *new; @@ -245,7 +245,7 @@ static int check_server_sync(char *from, char **ArgList) * possible formats that the irc server spits out. you'd think someone would * simplify this */ -void display_msg(char *from, char **ArgList) +static void display_msg(char *from, char **ArgList) { char *ptr, *s, diff --git a/source/tcl.c b/source/tcl.c index 8de09a9..bb63cb4 100644 --- a/source/tcl.c +++ b/source/tcl.c @@ -32,7 +32,6 @@ #include "output.h" #include "exec.h" #include "notify.h" -#include "numbers.h" #include "status.h" #include "if.h" #include "help.h" diff --git a/source/userlist.c b/source/userlist.c index f6656a3..32c6f6d 100644 --- a/source/userlist.c +++ b/source/userlist.c @@ -31,7 +31,6 @@ CVS_REVISION(userlist_c) #include "output.h" #include "exec.h" #include "notify.h" -#include "numbers.h" #include "status.h" #include "list.h" #include "struct.h" diff --git a/source/whowas.c b/source/whowas.c index 0ccddd7..f4b8cfe 100644 --- a/source/whowas.c +++ b/source/whowas.c @@ -24,7 +24,6 @@ CVS_REVISION(whowas_c) #include "names.h" #include "alias.h" #include "output.h" -#include "numbers.h" #include "status.h" #include "screen.h" #include "commands.h"