Skip to content

Commit

Permalink
Remove makeExpired
Browse files Browse the repository at this point in the history
  • Loading branch information
cziter15 committed Jan 2, 2025
1 parent 550d0b0 commit 87ef263
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 11 deletions.
6 changes: 0 additions & 6 deletions src/ksf/ksSimpleTimer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,6 @@ namespace ksf
this->intervalMs = intervalMs;
restart();
}

void ksSimpleTimer::makeExpired()
{
if (!hasTimePassed())
lastTriggerTimeMs -= intervalMs;
}

bool ksSimpleTimer::hasTimePassed() const
{
Expand Down
5 changes: 0 additions & 5 deletions src/ksf/ksSimpleTimer.h
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,6 @@ namespace ksf
*/
bool triggered();

/*!
@brief Makes the timer expired by substracing interval from last trigger time.
*/
void makeExpired();

/*!
@brief Checks if timer interval just passed. Restarting timer relies on user.
If timer interval is 0 then always returns false.
Expand Down

0 comments on commit 87ef263

Please sign in to comment.