remove cruft from ServersController.php

This commit is contained in:
Isaac Connor 2021-09-25 20:44:16 -04:00
parent 12783f6edf
commit 34d9f87d6d
1 changed files with 0 additions and 6 deletions

View File

@ -89,8 +89,6 @@ class ServersController extends AppController {
$this->Server->create(); $this->Server->create();
if ( $this->Server->save($this->request->data) ) { if ( $this->Server->save($this->request->data) ) {
# Might be nice to send it a start request
#$this->daemonControl($this->Server->id, 'start', $this->request->data);
return $this->flash(__('The server has been saved.'), array('action' => 'index')); return $this->flash(__('The server has been saved.'), array('action' => 'index'));
} }
} }
@ -126,8 +124,6 @@ class ServersController extends AppController {
'message' => $message, 'message' => $message,
'_serialize' => array('message') '_serialize' => array('message')
)); ));
// - restart this server after change
#$this->daemonControl($this->Server->id, 'restart', $this->request->data);
} }
/** /**
@ -151,8 +147,6 @@ class ServersController extends AppController {
} }
$this->request->allowMethod('post', 'delete'); $this->request->allowMethod('post', 'delete');
#$this->daemonControl($this->Server->id, 'stop');
if ( $this->Server->delete() ) { if ( $this->Server->delete() ) {
return $this->flash(__('The server has been deleted.'), array('action' => 'index')); return $this->flash(__('The server has been deleted.'), array('action' => 'index'));
} else { } else {