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-09-04 09:43:07 +0300
committerRoeland Jago Douma <roeland@famdouma.nl>2018-09-04 09:43:07 +0300
commit4f02b307b0acea04ae5b79c287912d6f0ded1abb (patch)
treed760a4ebad9d256b072f1d8f8b1e66187b8f060b /lib/public/Util.php
parent12a2a754e2ff7a31d75cef94f981e1eb069bb2f5 (diff)
Remove deprecated methods from OCP\Util
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'lib/public/Util.php')
-rw-r--r--lib/public/Util.php44
1 files changed, 0 insertions, 44 deletions
diff --git a/lib/public/Util.php b/lib/public/Util.php
index 9892f4a1ecb..3a1c28a899a 100644
--- a/lib/public/Util.php
+++ b/lib/public/Util.php
@@ -122,18 +122,6 @@ class Util {
}
/**
- * write exception into the log
- * @param string $app app name
- * @param \Exception $ex exception to log
- * @param int $level log level, defaults to \OCP\Util::FATAL
- * @since ....0.0 - parameter $level was added in 7.0.0
- * @deprecated 8.2.0 use logException of \OCP\ILogger
- */
- public static function logException( $app, \Exception $ex, $level = ILogger::FATAL) {
- \OC::$server->getLogger()->logException($ex, ['app' => $app]);
- }
-
- /**
* check if sharing is disabled for the current user
*
* @return boolean
@@ -426,38 +414,6 @@ class Util {
}
/**
- * replaces a copy of string delimited by the start and (optionally) length parameters with the string given in replacement.
- *
- * @param string $string The input string. Opposite to the PHP build-in function does not accept an array.
- * @param string $replacement The replacement string.
- * @param int $start If start is positive, the replacing will begin at the start'th offset into string. If start is negative, the replacing will begin at the start'th character from the end of string.
- * @param int $length Length of the part to be replaced
- * @param string $encoding The encoding parameter is the character encoding. Defaults to UTF-8
- * @return string
- * @since 4.5.0
- * @deprecated 8.2.0 Use substr_replace() instead.
- */
- public static function mb_substr_replace($string, $replacement, $start, $length = null, $encoding = 'UTF-8') {
- return substr_replace($string, $replacement, $start, $length);
- }
-
- /**
- * Replace all occurrences of the search string with the replacement string
- *
- * @param string $search The value being searched for, otherwise known as the needle. String.
- * @param string $replace The replacement string.
- * @param string $subject The string or array being searched and replaced on, otherwise known as the haystack.
- * @param string $encoding The encoding parameter is the character encoding. Defaults to UTF-8
- * @param int $count If passed, this will be set to the number of replacements performed.
- * @return string
- * @since 4.5.0
- * @deprecated 8.2.0 Use str_replace() instead.
- */
- public static function mb_str_replace($search, $replace, $subject, $encoding = 'UTF-8', &$count = null) {
- return str_replace($search, $replace, $subject, $count);
- }
-
- /**
* performs a search in a nested array
*
* @param array $haystack the array to be searched