1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-03-14 01:19:59 +00:00

Remove redundant update virtual functions

This commit is contained in:
elsid 2022-05-06 18:23:57 +02:00
parent 79676aee15
commit 2dc6e755b2
No known key found for this signature in database
GPG Key ID: B845CB9FEE18AB40
11 changed files with 8 additions and 25 deletions

View File

@ -66,12 +66,6 @@ namespace MWBase
virtual void drop (const MWWorld::CellStore *cellStore) = 0;
///< Deregister all objects in the given cell.
virtual void update (float duration, bool paused) = 0;
///< Update objects
///
/// \param paused In game type does not currently advance (this usually means some GUI
/// component is up).
virtual void setPlayerName (const std::string& name) = 0;
///< Set player name.

View File

@ -176,8 +176,6 @@ namespace MWBase
virtual void pausePlayback() = 0;
virtual void resumePlayback() = 0;
virtual void update(float duration) = 0;
virtual void setListenerPosDir(const osg::Vec3f &pos, const osg::Vec3f &dir, const osg::Vec3f &up, bool underwater) = 0;
virtual void updatePtr(const MWWorld::ConstPtr& old, const MWWorld::ConstPtr& updated) = 0;

View File

@ -88,8 +88,6 @@ namespace MWBase
/// iterator.
virtual CharacterIterator characterEnd() = 0;
virtual void update (float duration) = 0;
};
}

View File

@ -247,8 +247,6 @@ namespace MWBase
/// returns the index of the pressed button or -1 if no button was pressed (->MessageBoxmanager->InteractiveMessageBox)
virtual int readPressedButton() = 0;
virtual void update (float duration) = 0;
virtual void updateConsoleObjectPtr(const MWWorld::Ptr& currentPtr, const MWWorld::Ptr& newPtr) = 0;
/**

View File

@ -408,11 +408,6 @@ namespace MWBase
///< Write this record to the ESM store, allowing it to override a pre-existing record with the same ID.
/// \return pointer to created record
virtual void update (float duration, bool paused) = 0;
virtual void updatePhysics (float duration, bool paused, osg::Timer_t frameStart, unsigned int frameNumber, osg::Stats& stats) = 0;
virtual void updateWindowManager () = 0;
virtual MWWorld::Ptr placeObject (const MWWorld::ConstPtr& object, float cursorX, float cursorY, int amount) = 0;
///< copy and place an object into the gameworld at the specified cursor position
/// @param object

View File

@ -277,7 +277,7 @@ namespace MWGui
int readPressedButton () override; ///< returns the index of the pressed button or -1 if no button was pressed (->MessageBoxmanager->InteractiveMessageBox)
void update (float duration) override;
void update (float duration);
/**
* Fetches a GMST string from the store, if there is no setting with the given

View File

@ -61,7 +61,7 @@ namespace MWInput
/// Clear all savegame-specific data
void clear() override;
void update(float dt, bool disableControls=false, bool disableEvents=false) override;
void update(float dt, bool disableControls, bool disableEvents=false) override;
void changeInputMode(bool guiMode) override;

View File

@ -54,7 +54,7 @@ namespace MWMechanics
void drop(const MWWorld::CellStore *cellStore) override;
///< Deregister all objects in the given cell.
void update (float duration, bool paused) override;
void update(float duration, bool paused);
///< Update objects
///
/// \param paused In game type does not currently advance (this usually means some GUI

View File

@ -244,7 +244,7 @@ namespace MWSound
void pausePlayback() override;
void resumePlayback() override;
void update(float duration) override;
void update(float duration);
void setListenerPosDir(const osg::Vec3f &pos, const osg::Vec3f &dir, const osg::Vec3f &up, bool underwater) override;

View File

@ -84,7 +84,7 @@ namespace MWState
CharacterIterator characterEnd() override;
void update (float duration) override;
void update(float duration);
};
}

View File

@ -495,10 +495,10 @@ namespace MWWorld
///< Write this record to the ESM store, allowing it to override a pre-existing record with the same ID.
/// \return pointer to created record
void update (float duration, bool paused) override;
void updatePhysics (float duration, bool paused, osg::Timer_t frameStart, unsigned int frameNumber, osg::Stats& stats) override;
void update(float duration, bool paused);
void updatePhysics(float duration, bool paused, osg::Timer_t frameStart, unsigned int frameNumber, osg::Stats& stats);
void updateWindowManager () override;
void updateWindowManager();
MWWorld::Ptr placeObject (const MWWorld::ConstPtr& object, float cursorX, float cursorY, int amount) override;
///< copy and place an object into the gameworld at the specified cursor position