From 0a0548d754c132f3e0484b040da8fb75b4187f75 Mon Sep 17 00:00:00 2001 From: "Timothy J. Warren" Date: Fri, 8 Aug 2014 12:48:14 -0400 Subject: [PATCH] Remove some useless code, extract an exception into its own class --- autoload.php | 1 + core/BadDBDriverException.php | 26 ++++++++++++++++++++++++++ core/abstract/abstract_driver.php | 2 -- core/connection_manager.php | 10 ---------- 4 files changed, 27 insertions(+), 12 deletions(-) create mode 100644 core/BadDBDriverException.php diff --git a/autoload.php b/autoload.php index 8a76529..8d51708 100644 --- a/autoload.php +++ b/autoload.php @@ -35,6 +35,7 @@ define('QDRIVER_PATH', QBASE_PATH.'drivers/'); // Require some common functions require(QBASE_PATH.'common.php'); +require(QBASE_PATH.'core/BadDBDriverException.php'); // Load Query Classes spl_autoload_register(function ($class) diff --git a/core/BadDBDriverException.php b/core/BadDBDriverException.php new file mode 100644 index 0000000..4deac5b --- /dev/null +++ b/core/BadDBDriverException.php @@ -0,0 +1,26 @@ +