diff --git a/misuzu.php b/misuzu.php index 5e5f136d..d9560240 100644 --- a/misuzu.php +++ b/misuzu.php @@ -63,8 +63,6 @@ require_once 'src/Users/validation.php'; config_load(MSZ_ROOT . '/config/config.ini'); mail_prepare(config_get_default([], 'Mail')); -$app = new Application; - if (!empty($errorReporter)) { $errorReporter->setReportInfo( config_get('Exceptions', 'report_url'), diff --git a/src/Application.php b/src/Application.php deleted file mode 100644 index cd067556..00000000 --- a/src/Application.php +++ /dev/null @@ -1,58 +0,0 @@ -geoipInstance)) { - return; - } - - $this->geoipInstance = new GeoIP(config_get_default('', 'GeoIP', 'database_path')); - } - - public function getGeoIP(): GeoIP - { - if (empty($this->geoipInstance)) { - $this->startGeoIP(); - } - - return $this->geoipInstance; - } - - public static function geoip(): GeoIP - { - return self::getInstance()->getGeoIP(); - } - - // used in some of the user functions still, fix that - public static function getInstance(): Application - { - if (empty(self::$instance)) { - throw new UnexpectedValueException('No instances.'); - } - - return self::$instance; - } -}