From a1e034a621780fee9398663e1966b18127dfe9fd Mon Sep 17 00:00:00 2001 From: Kevin Chabowski Date: Tue, 27 Dec 2011 22:19:57 +0100 Subject: Finished optimizing for now. Removed debug tools and new API. The API version was increased because during this optimization the db models became incompatible to the old ones. --- ratatoeskr/sys/db.php | 3 --- 1 file changed, 3 deletions(-) (limited to 'ratatoeskr/sys/db.php') diff --git a/ratatoeskr/sys/db.php b/ratatoeskr/sys/db.php index cbf2100..6add093 100644 --- a/ratatoeskr/sys/db.php +++ b/ratatoeskr/sys/db.php @@ -76,7 +76,6 @@ function qdb_fmt() return qdb_vfmt(func_get_args()); } -$queries_fired = 0; /* * Function: qdb @@ -91,12 +90,10 @@ $queries_fired = 0; */ function qdb() { - global $queries_fired; $query = qdb_vfmt(func_get_args()); $rv = mysql_query($query); if($rv === false) throw new MySQLException(mysql_errno() . ': ' . mysql_error() . (__DEBUG__ ? ("[[FULL QUERY: " . $query . "]]") : "" )); - $queries_fired++; return $rv; } -- cgit v1.2.3-70-g09d2