diff options
author | Roeland Jago Douma <roeland@famdouma.nl> | 2018-03-14 00:04:08 +0300 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2018-03-14 00:04:08 +0300 |
commit | 83873e3da1535e02b3eac72e212f7ba0e251b7b9 (patch) | |
tree | a24e9351c510994e658628ecbc8c053ee95aad3d /lib/public/Util.php | |
parent | ede723f1b19c4c1afb7627af85c1e2f8d8a31386 (diff) |
Remove deprecated URL functions for OCP\Util
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'lib/public/Util.php')
-rw-r--r-- | lib/public/Util.php | 39 |
1 files changed, 0 insertions, 39 deletions
diff --git a/lib/public/Util.php b/lib/public/Util.php index 7e431189775..9ffa55e2dfd 100644 --- a/lib/public/Util.php +++ b/lib/public/Util.php @@ -234,33 +234,6 @@ class Util { } /** - * Creates an url using a defined route - * @param string $route - * @param array $parameters - * @internal param array $args with param=>value, will be appended to the returned url - * @return string the url - * @deprecated 8.1.0 Use \OC::$server->getURLGenerator()->linkToRoute($route, $parameters) - * @since 5.0.0 - */ - public static function linkToRoute( $route, $parameters = array() ) { - return \OC::$server->getURLGenerator()->linkToRoute($route, $parameters); - } - - /** - * Creates an url to the given app and file - * @param string $app app - * @param string $file file - * @param array $args array with param=>value, will be appended to the returned url - * The value of $args will be urlencoded - * @return string the url - * @deprecated 8.1.0 Use \OC::$server->getURLGenerator()->linkTo($app, $file, $args) - * @since 4.0.0 - parameter $args was added in 4.5.0 - */ - public static function linkTo( $app, $file, $args = array() ) { - return \OC::$server->getURLGenerator()->linkTo($app, $file, $args); - } - - /** * Returns the server host name without an eventual port number * @return string the server hostname * @since 5.0.0 @@ -308,18 +281,6 @@ class Util { } /** - * Creates path to an image - * @param string $app app - * @param string $image image name - * @return string the url - * @deprecated 8.1.0 Use \OC::$server->getURLGenerator()->imagePath($app, $image) - * @since 4.0.0 - */ - public static function imagePath( $app, $image ) { - return \OC::$server->getURLGenerator()->imagePath($app, $image); - } - - /** * Make a human file size (2048 to 2 kB) * @param int $bytes file size in bytes * @return string a human readable file size |