Remove unused function

This commit is contained in:
Mike Koch 2015-10-17 20:58:43 -04:00
parent 10fb6e374d
commit 5314f4f49f

View File

@ -154,19 +154,6 @@ function hesk_load_database_functions()
} // END hesk_load_database_functions() } // END hesk_load_database_functions()
function hesk_load_api_database_functions()
{
require(HESK_PATH . 'api/core/json_error.php');
// Preferrably use the MySQLi functions
if (function_exists('mysqli_connect')) {
require(HESK_PATH . 'api/core/database_mysqli.inc.php');
} // Default to MySQL
else {
require(HESK_PATH . 'api/core/database.inc.php');
}
} // END hesk_load_database_functions()
function hesk_unlink($file, $older_than = 0) function hesk_unlink($file, $older_than = 0)
{ {
return (is_file($file) && (!$older_than || (time() - filectime($file)) > $older_than) && @unlink($file)) ? true : false; return (is_file($file) && (!$older_than || (time() - filectime($file)) > $older_than) && @unlink($file)) ? true : false;