diff options
author | Thomas Steur <tsteur@users.noreply.github.com> | 2020-06-03 09:47:44 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-03 09:47:44 +0300 |
commit | 7585967cbd80d7869f57a9adc69c02e8d14cbc33 (patch) | |
tree | 7b06afedbcb883175f02ffff141809d001097b64 /plugins/API | |
parent | caf7dbf0fdd3e91a47fa49f297ed18a75ddeff9d (diff) |
Remove code tagged with `@deprecated` (#16001)
* remove some code tagged with deprecated
* some more tweaks
* remove more deprecated methods
* more deprecations
* remove old files
* remove more deprecated methods
* fix some tests
* update logviewer submodule
* fix some tests
* fix ui test
* another deprecation
* Update CHANGELOG.md
Co-authored-by: Stefan Giehl <stefan@matomo.org>
* add test for dimensions provider
Co-authored-by: Stefan Giehl <stefan@matomo.org>
Diffstat (limited to 'plugins/API')
-rw-r--r-- | plugins/API/API.php | 65 |
1 files changed, 1 insertions, 64 deletions
diff --git a/plugins/API/API.php b/plugins/API/API.php index 3cc54e0db3..7d961f02ab 100644 --- a/plugins/API/API.php +++ b/plugins/API/API.php @@ -111,7 +111,7 @@ class API extends \Piwik\Plugin\API /** * Get Matomo version * @return string - * @deprecated + * @deprecated Deprecated but we keep it for historical reasons to not break BC */ public function getPiwikVersion() { @@ -140,19 +140,6 @@ class API extends \Piwik\Plugin\API } /** - * Default translations for many core metrics. - * This is used for exports with translated labels. The exports contain columns that - * are not visible in the UI and not present in the API meta data. These columns are - * translated here. - * @return array - * @deprecated since Matomo 2.15.1 - */ - public function getDefaultMetricTranslations() - { - return Metrics::getDefaultMetricTranslations(); - } - - /** * Returns all available measurable types. * Marked as deprecated so it won't appear in API page. It won't be a public API for now. * @deprecated @@ -241,56 +228,6 @@ class API extends \Piwik\Plugin\API } /** - * Returns the url to application logo (~280x110px) - * - * @param bool $pathOnly If true, returns path relative to doc root. Otherwise, returns a URL. - * @return string - * @deprecated since Matomo 2.15.1 - */ - public function getLogoUrl($pathOnly = false) - { - $logo = new CustomLogo(); - return $logo->getLogoUrl($pathOnly); - } - - /** - * Returns the url to header logo (~127x50px) - * - * @param bool $pathOnly If true, returns path relative to doc root. Otherwise, returns a URL. - * @return string - * @deprecated since Matomo 2.15.1 - */ - public function getHeaderLogoUrl($pathOnly = false) - { - $logo = new CustomLogo(); - return $logo->getHeaderLogoUrl($pathOnly); - } - - /** - * Returns the URL to application SVG Logo - * - * @ignore - * @param bool $pathOnly If true, returns path relative to doc root. Otherwise, returns a URL. - * @return string - */ - public function getSVGLogoUrl($pathOnly = false) - { - $logo = new CustomLogo(); - return $logo->getSVGLogoUrl($pathOnly); - } - - /** - * Returns whether there is an SVG Logo available. - * @ignore - * @return bool - */ - public function hasSVGLogo() - { - $logo = new CustomLogo(); - return $logo->hasSVGLogo(); - } - - /** * Loads reports metadata, then return the requested one, * matching optional API parameters. */ |