From a72ed5f93f430ffb94ea87c5487e9e8ec0dd9642 Mon Sep 17 00:00:00 2001 From: Bernhard Posselt Date: Mon, 12 May 2014 22:57:53 +0200 Subject: remove dead code --- db/itemmapper.php | 2 +- db/mapperfactory.php | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) (limited to 'db') diff --git a/db/itemmapper.php b/db/itemmapper.php index 884405e6b..c1a341aaa 100644 --- a/db/itemmapper.php +++ b/db/itemmapper.php @@ -44,7 +44,7 @@ class ItemMapper extends Mapper implements IMapper { // prepare for the unexpected if(!is_numeric($status)) { - die(); die(); die('If you can read this something is terribly wrong'); + die('If you can read this something is terribly wrong'); } // now im gonna slowly stick them in the query, be careful! diff --git a/db/mapperfactory.php b/db/mapperfactory.php index 4597714d7..7d7c5d7cc 100644 --- a/db/mapperfactory.php +++ b/db/mapperfactory.php @@ -33,10 +33,8 @@ class MapperFactory { switch($this->dbType) { case 'pgsql': return new \OCA\News\Db\Postgres\ItemMapper($this->db); - break; default: return new ItemMapper($this->db); - break; } } -- cgit v1.2.3