Remove unnecessary inclusions of <numbers.h>

Functions display_msg() and check_sync() are only used in numbers.c, so they
can be static.

Remove inclusions of <numbers.h> from .c files that don't need it.
This commit is contained in:
Kevin Easton
2016-03-24 11:21:09 +11:00
parent f129ca29e7
commit d464bd91fb
11 changed files with 2 additions and 13 deletions

View File

@@ -14,8 +14,6 @@
#define __numbers_h_ #define __numbers_h_
char *numeric_banner(void); char *numeric_banner(void);
void display_msg(char *, char **);
void numbered_command(char *, int, char **); void numbered_command(char *, int, char **);
int check_sync(int, char *, char *, char *, char *, ChannelList *);
#endif /* __numbers_h_ */ #endif /* __numbers_h_ */

View File

@@ -24,7 +24,6 @@ CVS_REVISION(alias_c)
#include "ircaux.h" #include "ircaux.h"
#include "names.h" #include "names.h"
#include "notify.h" #include "notify.h"
#include "numbers.h"
#include "output.h" #include "output.h"
#include "parse.h" #include "parse.h"
#include "screen.h" #include "screen.h"

View File

@@ -52,7 +52,6 @@ CVS_REVISION(commands2_c)
#include "output.h" #include "output.h"
#include "exec.h" #include "exec.h"
#include "notify.h" #include "notify.h"
#include "numbers.h"
#include "status.h" #include "status.h"
#include "if.h" #include "if.h"
#include "help.h" #include "help.h"

View File

@@ -23,7 +23,6 @@ CVS_REVISION(funny_c)
#include "lastlog.h" #include "lastlog.h"
#include "ircterm.h" #include "ircterm.h"
#include "output.h" #include "output.h"
#include "numbers.h"
#include "parse.h" #include "parse.h"
#include "status.h" #include "status.h"
#include "misc.h" #include "misc.h"

View File

@@ -43,7 +43,6 @@ CVS_REVISION(irc_c)
#include "history.h" #include "history.h"
#include "exec.h" #include "exec.h"
#include "notify.h" #include "notify.h"
#include "numbers.h"
#include "mail.h" #include "mail.h"
#include "debug.h" #include "debug.h"
#include "newio.h" #include "newio.h"

View File

@@ -53,7 +53,6 @@ CVS_REVISION(misc_c)
#include "output.h" #include "output.h"
#include "exec.h" #include "exec.h"
#include "notify.h" #include "notify.h"
#include "numbers.h"
#include "status.h" #include "status.h"
#include "list.h" #include "list.h"
#include "timer.h" #include "timer.h"

View File

@@ -25,7 +25,6 @@ CVS_REVISION(names_c)
#include "lastlog.h" #include "lastlog.h"
#include "list.h" #include "list.h"
#include "output.h" #include "output.h"
#include "numbers.h"
#include "userlist.h" #include "userlist.h"
#include "timer.h" #include "timer.h"
#include "input.h" #include "input.h"

View File

@@ -85,7 +85,7 @@ char *numeric_banner(void)
return (thing); 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; ChannelList *tmp = NULL;
BanList *new; 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 * possible formats that the irc server spits out. you'd think someone would
* simplify this * simplify this
*/ */
void display_msg(char *from, char **ArgList) static void display_msg(char *from, char **ArgList)
{ {
char *ptr, char *ptr,
*s, *s,

View File

@@ -32,7 +32,6 @@
#include "output.h" #include "output.h"
#include "exec.h" #include "exec.h"
#include "notify.h" #include "notify.h"
#include "numbers.h"
#include "status.h" #include "status.h"
#include "if.h" #include "if.h"
#include "help.h" #include "help.h"

View File

@@ -31,7 +31,6 @@ CVS_REVISION(userlist_c)
#include "output.h" #include "output.h"
#include "exec.h" #include "exec.h"
#include "notify.h" #include "notify.h"
#include "numbers.h"
#include "status.h" #include "status.h"
#include "list.h" #include "list.h"
#include "struct.h" #include "struct.h"

View File

@@ -24,7 +24,6 @@ CVS_REVISION(whowas_c)
#include "names.h" #include "names.h"
#include "alias.h" #include "alias.h"
#include "output.h" #include "output.h"
#include "numbers.h"
#include "status.h" #include "status.h"
#include "screen.h" #include "screen.h"
#include "commands.h" #include "commands.h"