summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-04-30 19:04:21 +0300
committerAndrei Karas <akaras@inbox.ru>2016-04-30 19:04:21 +0300
commit8335b9a7459e1b3a0c4424b9f2a991ed7624f99d (patch)
tree293a121ac7561643e156b2912c82a088a769854d /src
parent23f7ed8d57a15d1adf4d071f92109f332ead385f (diff)
downloadevol-hercules-8335b9a7459e1b3a0c4424b9f2a991ed7624f99d.tar.gz
evol-hercules-8335b9a7459e1b3a0c4424b9f2a991ed7624f99d.tar.bz2
evol-hercules-8335b9a7459e1b3a0c4424b9f2a991ed7624f99d.tar.xz
evol-hercules-8335b9a7459e1b3a0c4424b9f2a991ed7624f99d.zip
Remove unused function from char server.
Diffstat (limited to 'src')
-rw-r--r--src/echar/char.c26
-rw-r--r--src/echar/char.h2
2 files changed, 0 insertions, 28 deletions
diff --git a/src/echar/char.c b/src/echar/char.c
index 6f2c92f..5fa2122 100644
--- a/src/echar/char.c
+++ b/src/echar/char.c
@@ -146,32 +146,6 @@ void echar_creation_failed(int *fdPtr, int *result)
hookStop();
}
-void echar_parse_char_ping(int *fdPtr)
-{
- const int fd = *fdPtr;
- RFIFOSKIP(fd, 6);
-
- struct char_session_data* sd = (struct char_session_data*)sockt->session[fd]->session_data;
- if (!sd)
- {
- hookStop();
- return;
- }
- struct online_char_data* character = (struct online_char_data*)idb_get(chr->online_char_db, sd->account_id);
- if (!character)
- {
- hookStop();
- return;
- }
-
- if (character->waiting_disconnect != INVALID_TIMER)
- {
- timer->delete(character->waiting_disconnect, chr->waiting_disconnect);
- character->waiting_disconnect = timer->add(timer->gettick() + 30000, chr->waiting_disconnect, character->account_id, 0);
- }
- hookStop();
-}
-
void echar_parse_change_paassword(int fd)
{
if (chr->login_fd < 0)
diff --git a/src/echar/char.h b/src/echar/char.h
index 2bf4e28..a4a29c8 100644
--- a/src/echar/char.h
+++ b/src/echar/char.h
@@ -8,8 +8,6 @@ void echar_parse_char_create_new_char(int *fdPtr, struct char_session_data* sd);
void echar_creation_failed(int *fdPtr, int *result);
-void echar_parse_char_ping(int *fdPtr);
-
void echar_parse_change_paassword(int fd);
void echar_parse_login_password_change_ack(int charFd);