diff options
author | mattab <matthieu.aubry@gmail.com> | 2013-10-10 08:52:46 +0400 |
---|---|---|
committer | mattab <matthieu.aubry@gmail.com> | 2013-10-11 00:15:03 +0400 |
commit | c782b8ccd740a206bf2b7af393dcade94a38ef7d (patch) | |
tree | 1c9d40a922785b2aa279857a1520a6eb6781bdb7 /plugins/Goals | |
parent | a4972f38678207e649a20f1b5ac281a679bf92fa (diff) |
Refs #4208 refactor all singletons except the hard ones (with custom getInstance()
(some tests failing)
Diffstat (limited to 'plugins/Goals')
-rw-r--r-- | plugins/Goals/API.php | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/plugins/Goals/API.php b/plugins/Goals/API.php index d61af04626..34b3083f88 100644 --- a/plugins/Goals/API.php +++ b/plugins/Goals/API.php @@ -41,21 +41,8 @@ use Piwik\Tracker\GoalManager; * * @package Goals */ -class API +class API extends \Piwik\Plugin\API { - static private $instance = null; - - /** - * @return \Piwik\Plugins\Goals\API - */ - static public function getInstance() - { - if (self::$instance == null) { - self::$instance = new self; - } - return self::$instance; - } - /** * Returns all Goals for a given website, or list of websites * |