db: remove obsolete _2 functions

This commit is contained in:
Andrew Dolgov 2010-02-03 15:07:21 +03:00
parent a6d0014d7b
commit d1277c7be5
1 changed files with 0 additions and 18 deletions

18
db.php
View File

@ -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) { function db_query($link, $query, $die_on_error = true) {
if (DB_TYPE == "pgsql") { if (DB_TYPE == "pgsql") {
$result = pg_query($link, $query); $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) { function db_fetch_assoc($result) {
if (DB_TYPE == "pgsql") { if (DB_TYPE == "pgsql") {
return pg_fetch_assoc($result); return pg_fetch_assoc($result);