From 9f53d3348bf223ba9430a5a9b660cd4b39d4f9ef Mon Sep 17 00:00:00 2001 From: adrian Date: Wed, 12 Dec 2012 13:08:21 +0000 Subject: [PATCH] SimulatorController: no need for return type bool of addCPU(). git-svn-id: https://www4.informatik.uni-erlangen.de/i4svn/danceos/trunk/devel/fail@1975 8c4709b5-6ec9-48aa-a5cd-a96041d1645a --- src/core/sal/SimulatorController.cc | 3 +-- src/core/sal/SimulatorController.hpp | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/core/sal/SimulatorController.cc b/src/core/sal/SimulatorController.cc index dcd4d90d..a832dc0a 100644 --- a/src/core/sal/SimulatorController.cc +++ b/src/core/sal/SimulatorController.cc @@ -169,11 +169,10 @@ void SimulatorController::onJump(ConcreteCPU* cpu, bool flagTriggered, unsigned m_LstList.triggerActiveListeners(); } -bool SimulatorController::addCPU(ConcreteCPU* cpu) +void SimulatorController::addCPU(ConcreteCPU* cpu) { assert(cpu != NULL && "FATAL ERROR: Argument (cpu) cannot be NULL!"); m_CPUs.push_back(cpu); - return true; } ConcreteCPU& SimulatorController::getCPU(size_t i) const diff --git a/src/core/sal/SimulatorController.hpp b/src/core/sal/SimulatorController.hpp index a1f4b715..8c9aa62e 100644 --- a/src/core/sal/SimulatorController.hpp +++ b/src/core/sal/SimulatorController.hpp @@ -143,7 +143,7 @@ public: * implementation (especially before the experiment code runs). * @param cpu the cpu that should be added to the list */ - bool addCPU(ConcreteCPU* cpu); + void addCPU(ConcreteCPU* cpu); /** * Gets the CPU with the provided \c id. * @param id the id of the CPU to get