From 6f102137fc36447b7ce29fd065581a1f6f996fc6 Mon Sep 17 00:00:00 2001 From: Thorbjørn Lindeijer Date: Tue, 9 Apr 2024 11:58:11 +0200 Subject: Removed unused duplicate parsing of effects.xml The loading of effects.xml has ended up being duplicated, with an implementation in getEffectDescription in actorsprite.cpp as well as in EffectManager. But the one in actorsprite.cpp was actually never used. --- src/actorsprite.h | 20 -------------------- 1 file changed, 20 deletions(-) (limited to 'src/actorsprite.h') diff --git a/src/actorsprite.h b/src/actorsprite.h index b3e14830..883934aa 100644 --- a/src/actorsprite.h +++ b/src/actorsprite.h @@ -113,17 +113,6 @@ public: */ void untarget() { mUsedTargetCursor = nullptr; } - /** - * Triggers a visual effect, such as `level up'. Only draws the visual - * effect, does not play sound effects. - * - * \param effectId ID of the effect to trigger - */ - virtual void triggerEffect(int effectId) - { - internalTriggerEffect(effectId, false, true); - } - /** * Sets the actor's stun mode. If zero, the being is `normal', otherwise it * is `stunned' in some fashion. @@ -162,15 +151,6 @@ public: static void unload(); protected: - /** - * Trigger visual effect, with components - * - * \param effectId ID of the effect to trigger - * \param sfx Whether to trigger sound effects - * \param gfx Whether to trigger graphical effects - */ - void internalTriggerEffect(int effectId, bool sfx, bool gfx); - /** * Notify self that the stun mode has been updated. Invoked by * setStunMode if something changed. -- cgit v1.2.3-70-g09d2