From cb8afb045171f0c10449981371e500ec63e07b85 Mon Sep 17 00:00:00 2001 From: Paul Gear Date: Sat, 27 Sep 2014 16:35:31 +1000 Subject: [PATCH] Remove obsolete function (already provided by getidbyname) --- includes/functions.php | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/includes/functions.php b/includes/functions.php index bf429b24e..872b6b65f 100755 --- a/includes/functions.php +++ b/includes/functions.php @@ -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; -} ?>