]> git.mxchange.org Git - friendica.git/commitdiff
Remove dbesc() and dba_timer() function declarations
authorHypolite Petovan <mrpetovan@gmail.com>
Sat, 21 Jul 2018 13:17:10 +0000 (09:17 -0400)
committerHypolite Petovan <hypolite@mrpetovan.com>
Mon, 23 Jul 2018 19:30:54 +0000 (15:30 -0400)
include/dba.php

index bccd9792bea798f020c99a7486c4e7dd769fa2aa..86ca2ac2de93c00422c75f9637a7481f31fba7ac 100644 (file)
@@ -2,14 +2,6 @@
 
 use Friendica\Database\DBA;
 
-function dbesc($str) {
-       if (DBA::$connected) {
-               return(DBA::escape($str));
-       } else {
-               return(str_replace("'","\\'",$str));
-       }
-}
-
 /**
  * @brief execute SQL query with printf style args - deprecated
  *
@@ -49,7 +41,3 @@ function q($sql) {
 
        return $data;
 }
-
-function dba_timer() {
-       return microtime(true);
-}