From c94d0c347fdbd8acc774df4ac17617a3f63e4507 Mon Sep 17 00:00:00 2001 From: Fabian Mastenbroek Date: Sun, 9 Jul 2017 23:48:06 +0200 Subject: 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. --- Simulator/src/modeling/Rack.cpp | 21 --------------------- 1 file changed, 21 deletions(-) delete mode 100644 Simulator/src/modeling/Rack.cpp (limited to 'Simulator/src/modeling/Rack.cpp') 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 -#include - -namespace Modeling -{ - Rack::Rack(int id, std::unordered_map machines) : Entity(id), machines(machines) {} - - std::unordered_map& Rack::getMachines() - { - return machines; - } - - Machine& Rack::getMachineAtSlot(int slot) - { - assert(machines.find(slot) != machines.end()); - - return machines.at(slot); - } -} -- cgit v1.2.3