From 5314f4f49fc8ceae4f1bc1c8bdb2bf9042e3f3b1 Mon Sep 17 00:00:00 2001 From: Mike Koch Date: Sat, 17 Oct 2015 20:58:43 -0400 Subject: [PATCH] Remove unused function --- inc/common.inc.php | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/inc/common.inc.php b/inc/common.inc.php index 963fe2f2..62406c11 100644 --- a/inc/common.inc.php +++ b/inc/common.inc.php @@ -154,19 +154,6 @@ function 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) { return (is_file($file) && (!$older_than || (time() - filectime($file)) > $older_than) && @unlink($file)) ? true : false;