summaryrefslogtreecommitdiff
path: root/indra/llcommon/llcallbacklist.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'indra/llcommon/llcallbacklist.cpp')
-rw-r--r--indra/llcommon/llcallbacklist.cpp27
1 files changed, 1 insertions, 26 deletions
diff --git a/indra/llcommon/llcallbacklist.cpp b/indra/llcommon/llcallbacklist.cpp
index 015475a903..555c793333 100644
--- a/indra/llcommon/llcallbacklist.cpp
+++ b/indra/llcommon/llcallbacklist.cpp
@@ -29,6 +29,7 @@
#include "llerror.h"
#include "llexception.h"
#include "llsdutil.h"
+#include "tempset.h"
#include <boost/container_hash/hash.hpp>
#include <iomanip>
#include <vector>
@@ -292,32 +293,6 @@ void Timers::setTimeslice(F32 timeslice)
}
}
-// RAII class to set specified variable to specified value
-// only for the duration of containing scope
-template <typename VAR, typename VALUE>
-class TempSet
-{
-public:
- TempSet(VAR& var, const VALUE& value):
- mVar(var),
- mOldValue(mVar)
- {
- mVar = value;
- }
-
- TempSet(const TempSet&) = delete;
- TempSet& operator=(const TempSet&) = delete;
-
- ~TempSet()
- {
- mVar = mOldValue;
- }
-
-private:
- VAR& mVar;
- VALUE mOldValue;
-};
-
bool Timers::tick()
{
// Fetch current time only on entry, even though running some mQueue task