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 b6c43f8 commit 10d7c53
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/creature.h
Original file line number Diff line number Diff line change
Expand Up @@ -282,11 +282,11 @@ class Creature : virtual public Thing
virtual void onWalk();
virtual bool getNextStep(Direction& dir, uint32_t& flags);

virtual void onAddTileItem(const Tile* tile, const Position& pos) {}
virtual void onUpdateTileItem(const Tile* tile, const Position& pos, const Item* oldItem, const ItemType& oldType,
const Item* newItem, const ItemType& newType)
virtual void onAddTileItem(const Tile*, const Position&) {}
virtual void onUpdateTileItem(const Tile*, const Position&, const Item*, const ItemType&, const Item*,
const ItemType&)
{}
virtual void onRemoveTileItem(const Tile* tile, const Position& pos, const ItemType& iType, const Item* item) {}
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) {}

Check failure on line 292 in src/creature.h

View workflow job for this annotation

GitHub Actions / test

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

Check failure on line 292 in src/creature.h

View workflow job for this annotation

GitHub Actions / test

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

Check failure on line 292 in src/creature.h

View workflow job for this annotation

GitHub Actions / test

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

Check failure on line 292 in src/creature.h

View workflow job for this annotation

GitHub Actions / test

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

Check failure on line 292 in src/creature.h

View workflow job for this annotation

GitHub Actions / test

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

Check failure on line 292 in src/creature.h

View workflow job for this annotation

GitHub Actions / test

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

Check failure on line 292 in src/creature.h

View workflow job for this annotation

GitHub Actions / test

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

Check failure on line 292 in src/creature.h

View workflow job for this annotation

GitHub Actions / test

unused parameter ‘isLogout’ [-Werror=unused-parameter]
Expand Down

0 comments on commit 10d7c53

Please sign in to comment.