Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2018-01-13 21:41:34 +0300
committerRoeland Jago Douma <roeland@famdouma.nl>2018-01-13 21:41:34 +0300
commitdffa922c0b3c84394b955caeabac004381e604ac (patch)
treea8fc5f1c90b5cfc23263516fed5bd8c58ecdd46b /lib/public/Util.php
parent1faef0c459a51a025f73f7eee46e5607ee6eedf5 (diff)
Remove deprecated 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.php26
1 files changed, 0 insertions, 26 deletions
diff --git a/lib/public/Util.php b/lib/public/Util.php
index 5127beaf505..2fb6bdf491d 100644
--- a/lib/public/Util.php
+++ b/lib/public/Util.php
@@ -245,21 +245,6 @@ class Util {
}
/**
- * formats a timestamp in the "right" way
- * @param int $timestamp $timestamp
- * @param bool $dateOnly option to omit time from the result
- * @param DateTimeZone|string $timeZone where the given timestamp shall be converted to
- * @return string timestamp
- *
- * @deprecated 8.0.0 Use \OC::$server->query('DateTimeFormatter') instead
- * @since 4.0.0
- * @suppress PhanDeprecatedFunction
- */
- public static function formatDate($timestamp, $dateOnly=false, $timeZone = null) {
- return \OC_Util::formatDate($timestamp, $dateOnly, $timeZone);
- }
-
- /**
* check if some encrypted files are stored
* @return bool
*
@@ -657,17 +642,6 @@ class Util {
}
/**
- * Generates a cryptographic secure pseudo-random string
- * @param int $length of the random string
- * @return string
- * @deprecated 8.0.0 Use \OC::$server->getSecureRandom()->getMediumStrengthGenerator()->generate($length); instead
- * @since 7.0.0
- */
- public static function generateRandomBytes($length = 30) {
- return \OC::$server->getSecureRandom()->generate($length, \OCP\Security\ISecureRandom::CHAR_LOWER.\OCP\Security\ISecureRandom::CHAR_DIGITS);
- }
-
- /**
* Compare two strings to provide a natural sort
* @param string $a first string to compare
* @param string $b second string to compare