summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHaru <haru@dotalux.com>2019-08-25 17:48:45 +0200
committerHaru <haru@dotalux.com>2019-08-26 00:29:03 +0200
commitab2b8254e88ea098b34b9127f1571a14ad0e692a (patch)
tree73d80e4d9b4b07ccc42d8a31fafa43994a29d0f2
parentfa0e16f6e27f783186ad83ca442fe0b48e7c2cfd (diff)
downloadhercules-ab2b8254e88ea098b34b9127f1571a14ad0e692a.tar.gz
hercules-ab2b8254e88ea098b34b9127f1571a14ad0e692a.tar.bz2
hercules-ab2b8254e88ea098b34b9127f1571a14ad0e692a.tar.xz
hercules-ab2b8254e88ea098b34b9127f1571a14ad0e692a.zip
Remove unused function intif_main_message()
Signed-off-by: Haru <haru@dotalux.com>
-rw-r--r--src/map/intif.c23
-rw-r--r--src/map/intif.h1
2 files changed, 0 insertions, 24 deletions
diff --git a/src/map/intif.c b/src/map/intif.c
index cb9dd465f..7a87d3639 100644
--- a/src/map/intif.c
+++ b/src/map/intif.c
@@ -212,28 +212,6 @@ static int intif_broadcast2(const char *mes, int len, unsigned int fontColor, sh
return 0;
}
-/// send a message using the main chat system
-/// <sd> the source of message
-/// <message> the message that was sent
-static int intif_main_message(struct map_session_data *sd, const char *message)
-{
- char output[256];
-
- nullpo_ret(sd);
- nullpo_ret(message);
-
- // format the message for main broadcasting
- snprintf( output, sizeof(output), msg_txt(386), sd->status.name, message );
-
- // send the message using the inter-server broadcast service
- intif->broadcast2(output, (int)strlen(output) + 1, 0xFE000000, 0, 0, 0, 0);
-
- // log the chat message
- logs->chat( LOG_CHAT_MAINCHAT, 0, sd->status.char_id, sd->status.account_id, mapindex_id2name(sd->mapindex), sd->bl.x, sd->bl.y, NULL, message );
-
- return 0;
-}
-
//Request for saving registry values.
static int intif_saveregistry(struct map_session_data *sd)
{
@@ -2884,7 +2862,6 @@ void intif_defaults(void)
intif->create_pet = intif_create_pet;
intif->broadcast = intif_broadcast;
intif->broadcast2 = intif_broadcast2;
- intif->main_message = intif_main_message;
intif->saveregistry = intif_saveregistry;
intif->request_registry = intif_request_registry;
intif->request_account_storage = intif_request_account_storage;
diff --git a/src/map/intif.h b/src/map/intif.h
index 043facb53..8f8cefbee 100644
--- a/src/map/intif.h
+++ b/src/map/intif.h
@@ -62,7 +62,6 @@ struct intif_interface {
int pet_equip, short intimate, short hungry, char rename_flag, char incubate, char *pet_name);
int (*broadcast) (const char *mes, int len, int type);
int (*broadcast2) (const char *mes, int len, unsigned int fontColor, short fontType, short fontSize, short fontAlign, short fontY);
- int (*main_message) (struct map_session_data* sd, const char* message);
int (*saveregistry) (struct map_session_data *sd);
int (*request_registry) (struct map_session_data *sd, int flag);
void (*request_account_storage) (const struct map_session_data *sd);