aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorChristoph Wurst <christoph@winzerhof-wurst.at>2023-06-01 20:32:59 +0200
committerChristoph Wurst <christoph@winzerhof-wurst.at>2023-06-01 20:32:59 +0200
commitf04ff2c6d7389aff02c43821a0d757f2299152dd (patch)
tree74b0b6b162bc17e3130a07d826420ade80f5faa8 /lib
parentff661045edd3a796d2a555e5a8d9762eb8ea30fb (diff)
downloadnextcloud-server-f04ff2c6d7389aff02c43821a0d757f2299152dd.tar.gz
nextcloud-server-f04ff2c6d7389aff02c43821a0d757f2299152dd.zip
chore(ocp)!: Drop \OCP\Util::linkToPublic
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'lib')
-rw-r--r--lib/public/Util.php15
1 files changed, 0 insertions, 15 deletions
diff --git a/lib/public/Util.php b/lib/public/Util.php
index 64934c5f3ad..b42327ada93 100644
--- a/lib/public/Util.php
+++ b/lib/public/Util.php
@@ -278,21 +278,6 @@ class Util {
}
/**
- * Creates an absolute url for public use
- * @param string $service id
- * @return string the url
- * @since 4.5.0
- * @deprecated 15.0.0 - use OCP\IURLGenerator
- */
- public static function linkToPublic($service) {
- $urlGenerator = \OC::$server->getURLGenerator();
- if ($service === 'files') {
- return $urlGenerator->getAbsoluteURL('/s');
- }
- return $urlGenerator->getAbsoluteURL($urlGenerator->linkTo('', 'public.php').'?service='.$service);
- }
-
- /**
* Returns the server host name without an eventual port number
* @return string the server hostname
* @since 5.0.0