aboutsummaryrefslogtreecommitdiff
path: root/ratatoeskr/sys/db.php
diff options
context:
space:
mode:
Diffstat (limited to 'ratatoeskr/sys/db.php')
-rw-r--r--ratatoeskr/sys/db.php20
1 files changed, 0 insertions, 20 deletions
diff --git a/ratatoeskr/sys/db.php b/ratatoeskr/sys/db.php
index 9efa9ec..b4f2efb 100644
--- a/ratatoeskr/sys/db.php
+++ b/ratatoeskr/sys/db.php
@@ -10,28 +10,8 @@
* See "ratatoeskr/licenses/ratatoeskr" for more information.
*/
-use r7r\cms\sys\Database;
-use r7r\cms\sys\Env;
-
if (!defined("SETUP")) {
require_once(dirname(__FILE__) . "/../config.php");
}
require_once(dirname(__FILE__) . "/utils.php");
-
-/**
- * Prepares statement (1st argument) like {@see Database::prepStmt()} and executes it with the remaining arguments.
- *
- * @param mixed ...$args
- * @return PDOStatement
- *
- * @deprecated Use {@see Database::query()} instead.
- */
-function qdb(...$args): PDOStatement
-{
- if (count($args) < 1) {
- throw new InvalidArgumentException("qdb needs at least 1 argument");
- }
-
- return Env::getGlobal()->database()->query((string)$args[0], ...array_slice($args, 1));
-}