diff options
author | Lukas Reschke <lukas@statuscode.ch> | 2016-05-10 20:19:48 +0200 |
---|---|---|
committer | Lukas Reschke <lukas@statuscode.ch> | 2016-05-10 20:19:48 +0200 |
commit | 4a05e9ce76901d220ab3c6032551da13389ff01a (patch) | |
tree | be4825cf62b2d1fb58ec8c35703a73bdcc6fa4a4 /lib/private/legacy | |
parent | 0543f8a8393f1837f5988606dcf303ceb53ad73a (diff) | |
parent | 5595e038ae681dde19275f9896795cd92cbed5fc (diff) | |
download | nextcloud-server-4a05e9ce76901d220ab3c6032551da13389ff01a.tar.gz nextcloud-server-4a05e9ce76901d220ab3c6032551da13389ff01a.zip |
Merge pull request #24379 from owncloud/remove-unneeded-code
Remove unneeded private wrapper methods
Diffstat (limited to 'lib/private/legacy')
-rw-r--r-- | lib/private/legacy/helper.php | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/lib/private/legacy/helper.php b/lib/private/legacy/helper.php index e6aaed0fd15..29ee1be76b4 100644 --- a/lib/private/legacy/helper.php +++ b/lib/private/legacy/helper.php @@ -67,21 +67,6 @@ class OC_Helper { } /** - * get path to preview of file - * @param string $path path - * @return string the url - * - * Returns the path to the preview of the file. - */ - public static function previewIcon($path) { - return \OC::$server->getURLGenerator()->linkToRoute('core_ajax_preview', ['x' => 32, 'y' => 32, 'file' => $path]); - } - - public static function publicPreviewIcon( $path, $token ) { - return \OC::$server->getURLGenerator()->linkToRoute('core_ajax_public_preview', ['x' => 32, 'y' => 32, 'file' => $path, 't' => $token]); - } - - /** * Make a human file size * @param int $bytes file size in bytes * @return string a human readable file size @@ -463,22 +448,6 @@ class OC_Helper { } /** - * Shortens str to maxlen by replacing characters in the middle with '...', eg. - * ellipsis('a very long string with lots of useless info to make a better example', 14) becomes 'a very ...example' - * - * @param string $str the string - * @param string $maxlen the maximum length of the result - * @return string with at most maxlen characters - */ - public static function ellipsis($str, $maxlen) { - if (strlen($str) > $maxlen) { - $characters = floor($maxlen / 2); - return substr($str, 0, $characters) . '...' . substr($str, -1 * $characters); - } - return $str; - } - - /** * calculates the maximum upload size respecting system settings, free space and user quota * * @param string $dir the current folder where the user currently operates |