Skip to content

Commit

Permalink
Removed unused parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
ramon-bernardo committed Nov 4, 2024
1 parent 3aef4c8 commit 5b8e67b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/creature.h
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ class Creature : virtual public Thing
virtual void onRemoveTileItem(const Tile*, const Position&, const ItemType&, const Item*) {}

virtual void onCreatureAppear(Creature* creature, bool isLogin);
virtual void onRemoveCreature(Creature* creature, bool isLogout) {}
virtual void onRemoveCreature(Creature*, bool) {}
virtual void onCreatureMove(Creature* creature, const Tile* newTile, const Position& newPos, const Tile* oldTile,
const Position& oldPos, bool teleport);

Expand Down
4 changes: 2 additions & 2 deletions src/player.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1081,7 +1081,7 @@ void Player::openSavedContainers()
}

void Player::onUpdateTileItem(const Tile* tile, const Position& pos, const Item* oldItem, const ItemType& oldType,
const Item* newItem, const ItemType& newType)
const Item* newItem, const ItemType&)
{
if (oldItem != newItem) {
onRemoveTileItem(tile, pos, oldType, oldItem);
Expand All @@ -1094,7 +1094,7 @@ void Player::onUpdateTileItem(const Tile* tile, const Position& pos, const Item*
}
}

void Player::onRemoveTileItem(const Tile* tile, const Position& pos, const ItemType& iType, const Item* item)
void Player::onRemoveTileItem(const Tile*, const Position& pos, const ItemType& iType, const Item* item)

Check failure on line 1097 in src/player.cpp

View workflow job for this annotation

GitHub Actions / test

unused parameter ‘pos’ [-Werror=unused-parameter]

Check failure on line 1097 in src/player.cpp

View workflow job for this annotation

GitHub Actions / test

unused parameter ‘iType’ [-Werror=unused-parameter]
{
if (tradeState != TRADE_TRANSFER) {
checkTradeState(item);
Expand Down
4 changes: 2 additions & 2 deletions src/player.h
Original file line number Diff line number Diff line change
Expand Up @@ -769,8 +769,8 @@ class Player final : public Creature, public Cylinder

// event methods
void onUpdateTileItem(const Tile* tile, const Position& pos, const Item* oldItem, const ItemType& oldType,
const Item* newItem, const ItemType& newType) override;
void onRemoveTileItem(const Tile* tile, const Position& pos, const ItemType& iType, const Item* item) override;
const Item* newItem, const ItemType&) override;
void onRemoveTileItem(const Tile*, const Position& pos, const ItemType& iType, const Item* item) override;

void onCreatureAppear(Creature* creature, bool isLogin) override;
void onRemoveCreature(Creature* creature, bool isLogout) override;
Expand Down

0 comments on commit 5b8e67b

Please sign in to comment.