From 15e965febf5e044e021fc0ee65b5855ebd11a2d0 Mon Sep 17 00:00:00 2001 From: hsc Date: Thu, 13 Sep 2012 20:07:00 +0000 Subject: [PATCH] BaseListener: remove pointless creation timestamps git-svn-id: https://www4.informatik.uni-erlangen.de/i4svn/danceos/trunk/devel/fail@1637 8c4709b5-6ec9-48aa-a5cd-a96041d1645a --- src/core/sal/Listener.hpp | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/src/core/sal/Listener.hpp b/src/core/sal/Listener.hpp index 482c4c3a..ed422213 100644 --- a/src/core/sal/Listener.hpp +++ b/src/core/sal/Listener.hpp @@ -1,7 +1,6 @@ #ifndef __LISTENER_HPP__ #define __LISTENER_HPP__ -#include #include #include #include @@ -31,7 +30,7 @@ protected: ExperimentFlow* m_Parent; //!< this listener belongs to experiment m_Parent public: BaseListener() : m_OccCounter(1), m_OccCounterInit(1), m_Parent(NULL) - { updateTime(); } + { } virtual ~BaseListener() { } /** * This method is called when an experiment flow adds a new listener by @@ -58,13 +57,6 @@ public: */ virtual void onTrigger() { } // TODO: Hier noch ne neue Methode oder reicht es, die Semantik von onTrigger umzudef.? - /** - * Retrieves the time stamp of this listener. The time stamp is set when - * the listener gets created, i.e. the constructor is called. The meaning - * of this value depends on the actual listener type. - * @return the time stamp - */ - std::time_t getTime() const { return (m_tStamp); } /** * Decreases the listener counter by one. When this counter reaches zero, the * listener will be triggered. @@ -85,10 +77,6 @@ public: * value that was set through \c setCounter(). */ void resetCounter() { m_OccCounter = m_OccCounterInit; } - /** - * Sets the time stamp for this listener to the current system time. - */ - void updateTime() { time(&m_tStamp); } /** * Returns the parent experiment of this listener (context). * If the listener was created temporarily or wasn't linked to a context,