Remove another unnecessary this == null check

This commit is contained in:
Michael Cook (mackal) 2020-01-16 17:06:11 -05:00
parent 945ca1278c
commit e6a14beb2e

View File

@ -190,10 +190,6 @@ bool PersistentTimer::Clear(Database *db) {
/* This function checks if the timer triggered */
bool PersistentTimer::Expired(Database *db, bool iReset) {
if (this == nullptr) {
LogError("Null timer during ->Check()!?\n");
return(true);
}
uint32 current_time = get_current_time();
if (current_time-start_time >= timer_time) {
if (enabled && iReset) {