summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2011-08-11 03:43:22 +0300
committerAndrei Karas <akaras@inbox.ru>2011-08-11 03:43:22 +0300
commit69c4bf1494b19ca3b3333effff83086b0f0b87fd (patch)
tree2503d7702e2f142b6704e1b9b366aa9894dfbd00 /src
parentdd5a317dbfdb24d905ade4ebea458e370619f61f (diff)
downloadplus-69c4bf1494b19ca3b3333effff83086b0f0b87fd.tar.gz
plus-69c4bf1494b19ca3b3333effff83086b0f0b87fd.tar.bz2
plus-69c4bf1494b19ca3b3333effff83086b0f0b87fd.tar.xz
plus-69c4bf1494b19ca3b3333effff83086b0f0b87fd.zip
Remove some unused code.
Diffstat (limited to 'src')
-rw-r--r--src/net/ea/inventoryhandler.cpp6
-rw-r--r--src/resources/itemdb.cpp2
2 files changed, 4 insertions, 4 deletions
diff --git a/src/net/ea/inventoryhandler.cpp b/src/net/ea/inventoryhandler.cpp
index acd674d12..2e52b85ff 100644
--- a/src/net/ea/inventoryhandler.cpp
+++ b/src/net/ea/inventoryhandler.cpp
@@ -275,7 +275,7 @@ void InventoryHandler::processPlayerStorageEquip(Net::MessageIn &msg)
void InventoryHandler::processPlayerInventoryAdd(Net::MessageIn &msg)
{
int index, amount, itemId, equipType, refine;
- int cards[4], itemType;
+// int cards[4], itemType;
unsigned char identified;
int floorId;
@@ -296,9 +296,9 @@ void InventoryHandler::processPlayerInventoryAdd(Net::MessageIn &msg)
msg.readInt8(); // attribute
refine = msg.readInt8();
for (int i = 0; i < 4; i++)
- cards[i] = msg.readInt16();
+ msg.readInt16(); // cards[i]
equipType = msg.readInt16();
- itemType = msg.readInt8();
+ msg.readInt8(); // itemType
const ItemInfo &itemInfo = ItemDB::get(itemId);
diff --git a/src/resources/itemdb.cpp b/src/resources/itemdb.cpp
index 2d14ba687..7919145bd 100644
--- a/src/resources/itemdb.cpp
+++ b/src/resources/itemdb.cpp
@@ -213,7 +213,7 @@ void ItemDB::load()
std::string attackAction = XML::getProperty(node, "attack-action", "");
std::string drawBefore = XML::getProperty(node, "drawBefore", "");
std::string drawAfter = XML::getProperty(node, "drawAfter", "");
- std::string removeSprite = XML::getProperty(node, "removeSprite", "");
+// std::string removeSprite = XML::getProperty(node, "removeSprite", "");
std::string colors;
if (serverVersion >= 1)
colors = XML::getProperty(node, "colors", "");