remove cruft from ServersController.php
This commit is contained in:
parent
12783f6edf
commit
34d9f87d6d
|
@ -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 {
|
||||||
|
|
Loading…
Reference in New Issue