From 934a1857b7259c64d766498420419d3916bc23aa Mon Sep 17 00:00:00 2001 From: Bernhard Posselt Date: Sat, 19 Apr 2014 13:49:45 +0200 Subject: remove unneeded constructor parameter for db --- app/news.php | 2 +- core/db.php | 6 ------ 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/app/news.php b/app/news.php index aeb12f620..3658dac3c 100644 --- a/app/news.php +++ b/app/news.php @@ -263,7 +263,7 @@ class News extends App { }); $container->registerService('Db', function($c) { - return new Db($c['AppName']); + return new Db(); }); $container->registerService('Settings', function($c) { diff --git a/core/db.php b/core/db.php index ed9a0ee98..507f6ed85 100644 --- a/core/db.php +++ b/core/db.php @@ -25,12 +25,6 @@ namespace OCA\News\Core; class Db { - protected $appName; - - public function __construct($appName) { - $this->appName = $appName; - } - /** * Used to abstract the owncloud database access away -- cgit v1.2.3