Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
kill dead code
[simgrid.git] / src / surf / virtual_machine.cpp
index 7c22bc5..f798083 100644 (file)
@@ -152,23 +152,10 @@ e_surf_vm_state_t VirtualMachine::getState() {
   return vmState_;
 }
 
-void VirtualMachine::setState(e_surf_vm_state_t state) {
+void VirtualMachine::setState(e_surf_vm_state_t state)
+{
   vmState_ = state;
 }
-void VirtualMachine::turnOn() {
-  THROW_DEADCODE;
-  if (isOff()) {
-    Resource::turnOn();
-    onVmStateChange(this);
-  }
-}
-void VirtualMachine::turnOff() {
-  THROW_DEADCODE;
-  if (isOn()) {
-    Resource::turnOff();
-    onVmStateChange(this);
-  }
-}
 void VirtualMachine::suspend()
 {
   action_->suspend();