diff options
Diffstat (limited to 'misc_functions.cpp')
| -rw-r--r-- | misc_functions.cpp | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/misc_functions.cpp b/misc_functions.cpp index a2e19a0..e767b2e 100644 --- a/misc_functions.cpp +++ b/misc_functions.cpp @@ -10,21 +10,3 @@ void delay(int p_milliseconds) while(QTime::currentTime() < dieTime) QCoreApplication::processEvents(QEventLoop::AllEvents, 100); } - -//alternates between true and false every time it is called. useful for certain optimization -bool cyclic_function() -{ - static bool cycle = true; - - if (cycle) - { - cycle = false; - return cycle; - } - - else - { - cycle = true; - return cycle; - } -} |
