🔥 remove dead code
This commit is contained in:
parent
1b273062c4
commit
afa67eb96d
2 changed files with 0 additions and 28 deletions
|
@ -927,28 +927,6 @@ class ApiController extends Zend_Controller_Action
|
||||||
Logging::info("Registered Component: ".$component."@".$remoteAddr);
|
Logging::info("Registered Component: ".$component."@".$remoteAddr);
|
||||||
|
|
||||||
Application_Model_ServiceRegister::Register($component, $remoteAddr);
|
Application_Model_ServiceRegister::Register($component, $remoteAddr);
|
||||||
|
|
||||||
//send ip, subdomain
|
|
||||||
if ($component == "pypo"){
|
|
||||||
$split = explode('.', $_SERVER['SERVER_NAME']);
|
|
||||||
$subdomain = array();
|
|
||||||
foreach ($split as $value) {
|
|
||||||
if ($value == 'airtime') {
|
|
||||||
break;
|
|
||||||
} else {
|
|
||||||
$subdomain[] = $value;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if (count($subdomain) > 0){
|
|
||||||
$subDomain = implode('.',$subdomain);
|
|
||||||
|
|
||||||
$md = array();
|
|
||||||
$md["sub_domain"] = $subDomain;
|
|
||||||
$md["pypo_ip"] = $remoteAddr;
|
|
||||||
|
|
||||||
Application_Model_RabbitMq::SendMessageToHaproxyConfigDaemon($md);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public function updateLiquidsoapStatusAction()
|
public function updateLiquidsoapStatusAction()
|
||||||
|
|
|
@ -129,10 +129,4 @@ class Application_Model_RabbitMq
|
||||||
$conn->close();
|
$conn->close();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
public static function SendMessageToHaproxyConfigDaemon($md){
|
|
||||||
//XXX: This function has been deprecated and is no longer needed
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue