summaryrefslogtreecommitdiffstats
path: root/db
diff options
context:
space:
mode:
authorBernhard Posselt <dev@bernhard-posselt.com>2014-05-12 22:57:53 +0200
committerBernhard Posselt <dev@bernhard-posselt.com>2014-05-12 22:57:53 +0200
commita72ed5f93f430ffb94ea87c5487e9e8ec0dd9642 (patch)
treeaa6d7cd7b94dda3515d6e0a0e66c9e3e3f27b786 /db
parent02bd530fc365d5627c1c6de0d3a61dc0c8b81182 (diff)
remove dead code
Diffstat (limited to 'db')
-rw-r--r--db/itemmapper.php2
-rw-r--r--db/mapperfactory.php2
2 files changed, 1 insertions, 3 deletions
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;
}
}