mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Remove obsolete function (already provided by getidbyname)
This commit is contained in:
@@ -941,25 +941,4 @@ function validate_device_id($id)
|
||||
return($return);
|
||||
}
|
||||
|
||||
function get_device_id($hostname)
|
||||
{
|
||||
global $config;
|
||||
if(empty($hostname))
|
||||
{
|
||||
$return = false;
|
||||
}
|
||||
else
|
||||
{
|
||||
$device_id = dbFetchCell("SELECT `device_id` FROM `devices` WHERE `hostname` = ?", array($hostname));
|
||||
if(empty($device_id))
|
||||
{
|
||||
$return = false;
|
||||
}
|
||||
else
|
||||
{
|
||||
$return = $device_id;
|
||||
}
|
||||
}
|
||||
return $return;
|
||||
}
|
||||
?>
|
||||
|
Reference in New Issue
Block a user