summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-04-20 02:39:07 +0300
committerAndrei Karas <akaras@inbox.ru>2017-04-20 02:39:07 +0300
commit5600abb3f24ef7a759dbd24279f93e9749d438f0 (patch)
tree955e3b07b7b3db84f90a3816dcc7f5365bcfdc40
parent433e89ad46c21b95e694c9f65d01460152c0572f (diff)
downloadevol-hercules-5600abb3f24ef7a759dbd24279f93e9749d438f0.tar.gz
evol-hercules-5600abb3f24ef7a759dbd24279f93e9749d438f0.tar.bz2
evol-hercules-5600abb3f24ef7a759dbd24279f93e9749d438f0.tar.xz
evol-hercules-5600abb3f24ef7a759dbd24279f93e9749d438f0.zip
Remove unused functions.
-rw-r--r--src/emap/clif.c55
-rw-r--r--src/emap/clif.h15
-rw-r--r--src/emap/init.c3
-rw-r--r--src/emap/script_buildins.c10
4 files changed, 0 insertions, 83 deletions
diff --git a/src/emap/clif.c b/src/emap/clif.c
index cf1e0ce..d194030 100644
--- a/src/emap/clif.c
+++ b/src/emap/clif.c
@@ -585,36 +585,6 @@ uint16 GetWord(uint32 val, int idx)
}
}
-//To make the assignation of the level based on limits clearer/easier. [Skotlex]
-static int clif_setlevel_sub(int lv)
-{
- if (lv < battle->bc->max_lv)
- {
- ;
- }
- else if (lv < battle->bc->aura_lv)
- {
- lv = battle->bc->max_lv - 1;
- }
- else
- {
- lv = battle->bc->max_lv;
- }
-
- return lv;
-}
-
-static int clif_setlevel(struct block_list* bl)
-{
- int lv = status->get_lv(bl);
- nullpo_retr(0, bl);
- if (battle->bc->client_limit_unit_lv&bl->type)
- return clif_setlevel_sub(lv);
- if (bl->type == BL_NPC || bl->type == BL_PET)
- return 0;
- return lv;
-}
-
//To identify disguised characters.
static inline bool disguised(struct block_list* bl)
{
@@ -665,13 +635,6 @@ void eclif_set_unit_idle_post(struct block_list *bl,
send_npc_info(bl, &tsd->bl, target);
}
-void eclif_set_unit_walking_pre(struct block_list **blPtr,
- TBL_PC **tsdPtr,
- struct unit_data **udPtr,
- enum send_target *target)
-{
-}
-
void eclif_set_unit_walking_post(struct block_list *bl,
TBL_PC *tsd,
struct unit_data* ud,
@@ -689,19 +652,6 @@ void eclif_set_unit_walking_post(struct block_list *bl,
}
}
-int eclif_damage_post(int retVal,
- struct block_list* src,
- struct block_list* dst,
- int sdelay,
- int ddelay,
- int64 in_damage,
- short div,
- unsigned char type,
- int64 in_damage2)
-{
- return retVal;
-}
-
void eclif_move_post(struct unit_data *ud)
{
if (!ud)
@@ -711,11 +661,6 @@ void eclif_move_post(struct unit_data *ud)
send_advmoving(ud, false, ud->bl, AREA_WOS);
}
-void eclif_spawn_unit_pre(struct block_list **blPtr,
- enum send_target *target)
-{
-}
-
bool tempChangeMap;
void eclif_parse_LoadEndAck_pre(int *fdPtr __attribute__ ((unused)),
diff --git a/src/emap/clif.h b/src/emap/clif.h
index dba0919..59d2f15 100644
--- a/src/emap/clif.h
+++ b/src/emap/clif.h
@@ -39,23 +39,10 @@ void eclif_changemap_post(TBL_PC *sd,
void eclif_set_unit_idle_post(struct block_list *bl,
TBL_PC *tsd,
enum send_target target);
-void eclif_set_unit_walking_pre(struct block_list **blPtr,
- TBL_PC **tsdPtr,
- struct unit_data **udPtr,
- enum send_target *target);
void eclif_set_unit_walking_post(struct block_list *bl,
TBL_PC *tsd,
struct unit_data *ud,
enum send_target target);
-int eclif_damage_post(int retVal,
- struct block_list *src,
- struct block_list *dst,
- int sdelay,
- int ddelay,
- int64 in_damage,
- short div,
- unsigned char type,
- int64 in_damage2);
void eclif_move_post(struct unit_data *ud);
void eclif_parse_LoadEndAck_pre(int *fdPtr,
struct map_session_data **sdPtr);
@@ -76,8 +63,6 @@ void eclif_disp_message_pre(struct block_list **srcPtr,
const char **mesPtr,
enum send_target *targetPtr);
-void eclif_spawn_unit_pre(struct block_list **blPtr,
- enum send_target *target);
void eclif_addcards_post(unsigned char *buf,
struct item *item);
void eclif_addcards2_post(unsigned short *cards,
diff --git a/src/emap/init.c b/src/emap/init.c
index ee03f84..9bc7608 100644
--- a/src/emap/init.c
+++ b/src/emap/init.c
@@ -247,10 +247,8 @@ HPExport void plugin_init (void)
addHookPre(clif, sendbgemblem_area, eclif_sendbgemblem_area_pre);
addHookPre(clif, sendbgemblem_single, eclif_sendbgemblem_single_pre);
addHookPre(clif, set_unit_idle, eclif_set_unit_idle_pre);
- addHookPre(clif, set_unit_walking, eclif_set_unit_walking_pre);
addHookPre(clif, send_actual, eclif_send_actual_pre);
addHookPre(clif, pLoadEndAck, eclif_parse_LoadEndAck_pre);
- addHookPre(clif, spawn_unit, eclif_spawn_unit_pre);
addHookPre(clif, skillinfoblock, eclif_skillinfoblock_pre);
addHookPre(clif, addskill, eclif_addskill_pre);
addHookPre(clif, skillinfo, eclif_skillinfo_pre);
@@ -296,7 +294,6 @@ HPExport void plugin_init (void)
addHookPost(clif, set_unit_idle, eclif_set_unit_idle_post);
addHookPost(clif, pLoadEndAck, eclif_parse_LoadEndAck_post);
addHookPost(clif, spawn, eclif_spawn_post);
- addHookPost(clif, damage, eclif_damage_post);
addHookPost(clif, set_unit_walking, eclif_set_unit_walking_post);
addHookPost(clif, move, eclif_move_post);
addHookPost(clif, party_info, eclif_party_info_post);
diff --git a/src/emap/script_buildins.c b/src/emap/script_buildins.c
index 45444b4..8891311 100644
--- a/src/emap/script_buildins.c
+++ b/src/emap/script_buildins.c
@@ -236,11 +236,6 @@ BUILDIN(getItemLink)
if (sd)
{
- int version = 0;
- struct SessionExt *data = session_get_bysd(sd);
- if (data)
- version = data->clientVersion;
-
if (i_data)
{
if (!script_hasdata(st, 3))
@@ -1841,11 +1836,6 @@ BUILDIN(getInvIndexLink)
if (sd)
{
- int version = 0;
- struct SessionExt *data = session_get_bysd(sd);
- if (data)
- version = data->clientVersion;
-
if (i_data)
{
const struct item *const item = &sd->status.inventory[index];