diff options
| author | Fabian Mastenbroek <mail.fabianm@gmail.com> | 2017-07-09 23:48:06 +0200 |
|---|---|---|
| committer | Fabian Mastenbroek <mail.fabianm@gmail.com> | 2017-07-09 23:48:06 +0200 |
| commit | c94d0c347fdbd8acc774df4ac17617a3f63e4507 (patch) | |
| tree | 4b825dc642cb6eb9a060e54bf8d69288fbee4904 /Simulator/src/modeling/Rack.cpp | |
| parent | bc4c41e21a64b444bdbab3b6d1d407fd5d919419 (diff) | |
Delete old codebase
This change removes version 1 of the OpenDC simulator codebase as it
will be replaced by a complete rewrite in the Kotlin language.
Diffstat (limited to 'Simulator/src/modeling/Rack.cpp')
| -rw-r--r-- | Simulator/src/modeling/Rack.cpp | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/Simulator/src/modeling/Rack.cpp b/Simulator/src/modeling/Rack.cpp deleted file mode 100644 index 2b330abd..00000000 --- a/Simulator/src/modeling/Rack.cpp +++ /dev/null @@ -1,21 +0,0 @@ -#include "modeling/Rack.h" - -#include <assert.h> -#include <iterator> - -namespace Modeling -{ - Rack::Rack(int id, std::unordered_map<uint32_t, Machine> machines) : Entity(id), machines(machines) {} - - std::unordered_map<uint32_t, Machine>& Rack::getMachines() - { - return machines; - } - - Machine& Rack::getMachineAtSlot(int slot) - { - assert(machines.find(slot) != machines.end()); - - return machines.at(slot); - } -} |
