瀏覽代碼

Removed unused functions
* Removed inter_storage_delete and inter_guild_storage_delete functions as they are not used.

aleos89 8 年之前
父節點
當前提交
8028789dee
共有 2 個文件被更改,包括 0 次插入15 次删除
  1. 0 13
      src/char/int_storage.c
  2. 0 2
      src/char/int_storage.h

+ 0 - 13
src/char/int_storage.c

@@ -184,19 +184,6 @@ void inter_storage_sql_final(void)
 	return;
 }
 
-// Delete char storage
-void inter_storage_delete(uint32 account_id)
-{
-	if( SQL_ERROR == Sql_Query(sql_handle, "DELETE FROM `%s` WHERE `account_id`='%d'", schema_config.storage_db, account_id) )
-		Sql_ShowDebug(sql_handle);
-}
-
-void inter_guild_storage_delete(int guild_id)
-{
-	if( SQL_ERROR == Sql_Query(sql_handle, "DELETE FROM `%s` WHERE `guild_id`='%d'", schema_config.guild_storage_db, guild_id) )
-		Sql_ShowDebug(sql_handle);
-}
-
 //---------------------------------------------------------
 // packet from map server
 

+ 0 - 2
src/char/int_storage.h

@@ -8,8 +8,6 @@ struct s_storage;
 
 void inter_storage_sql_init(void);
 void inter_storage_sql_final(void);
-void inter_storage_delete(uint32 account_id);
-void inter_guild_storage_delete(int guild_id);
 
 bool inter_premiumStorage_exists(uint8 id);
 int inter_premiumStorage_getMax(uint8 id);