small cleanups

git-svn-id: http://www.observium.org/svn/observer/trunk@1235 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
Adam Amstrong
2010-06-21 16:29:43 +00:00
parent 711bac820b
commit 6213e164ab
3 changed files with 1 additions and 15 deletions
-6
View File
@@ -56,12 +56,6 @@ function only_alphanumeric( $string )
return preg_replace('/[^a-zA-Z0-9]/', '', $string);
}
function validate_hostip($host)
{
// FIXME
}
function write_dev_attrib($device_id, $attrib_type, $attrib_value)
{
$count_sql = "SELECT COUNT(*) FROM devices_attribs WHERE `device_id` = '" . $device_id . "' AND `attrib_type` = '$attrib_type'";