From d1277c7be5a48d5f2443a5ea01b5f518ed2a6061 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Wed, 3 Feb 2010 15:07:21 +0300 Subject: [PATCH] db: remove obsolete _2 functions --- db.php | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/db.php b/db.php index d8187fc3..c07aa9fa 100644 --- a/db.php +++ b/db.php @@ -45,16 +45,6 @@ function db_escape_string($s) { } } -/* I hate MySQL :( */ - -function db_escape_string_2($s, $link) { - if (DB_TYPE == "pgsql") { - return pg_escape_string($s); - } else { - return mysql_real_escape_string($s, $link); - } -} - function db_query($link, $query, $die_on_error = true) { if (DB_TYPE == "pgsql") { $result = pg_query($link, $query); @@ -77,14 +67,6 @@ function db_query($link, $query, $die_on_error = true) { } } -function db_query_2($query) { - if (DB_TYPE == "pgsql") { - return pg_query($query); - } else if (DB_TYPE == "mysql") { - return mysql_query($link); - } -} - function db_fetch_assoc($result) { if (DB_TYPE == "pgsql") { return pg_fetch_assoc($result); -- 2.39.5