Drop remaining ERROR deprecations from kotlin-stdlib-js.
Leave only `native`, `parseInt`, `parseFloat` and `noImpl`.
This commit is contained in:
@@ -37,10 +37,6 @@ public annotation class nativeInvoke
|
||||
@Target(CLASS, FUNCTION, PROPERTY)
|
||||
internal annotation class library(public val name: String = "")
|
||||
|
||||
@Deprecated("It is no longer has any effect and will be dropped in a future version", level = DeprecationLevel.ERROR)
|
||||
@Target(PROPERTY)
|
||||
public annotation class enumerable()
|
||||
|
||||
@Target(CLASS)
|
||||
internal annotation class marker
|
||||
|
||||
|
||||
@@ -64,9 +64,6 @@ public class Regex(pattern: String, options: Set<RegexOption>) {
|
||||
return nativePattern.test(input.toString())
|
||||
}
|
||||
|
||||
@Deprecated("Use containsMatchIn() or 'in' operator instead.", ReplaceWith("this in input"), level = DeprecationLevel.ERROR)
|
||||
public fun hasMatch(input: CharSequence): Boolean = containsMatchIn(input)
|
||||
|
||||
/** Returns the first match of a regular expression in the [input], beginning at the specified [startIndex].
|
||||
*
|
||||
* @param startIndex An index to start search with, by default 0. Must be not less than zero and not greater than `input.length()`
|
||||
@@ -74,16 +71,10 @@ public class Regex(pattern: String, options: Set<RegexOption>) {
|
||||
*/
|
||||
public fun find(input: CharSequence, startIndex: Int = 0): MatchResult? = nativePattern.findNext(input.toString(), startIndex)
|
||||
|
||||
@Deprecated("Use find() instead.", ReplaceWith("find(input, startIndex)"), level = DeprecationLevel.ERROR)
|
||||
public fun match(input: CharSequence, startIndex: Int = 0): MatchResult? = find(input, startIndex)
|
||||
|
||||
/** Returns a sequence of all occurrences of a regular expression within the [input] string, beginning at the specified [startIndex].
|
||||
*/
|
||||
public fun findAll(input: CharSequence, startIndex: Int = 0): Sequence<MatchResult> = generateSequence({ find(input, startIndex) }, { match -> match.next() })
|
||||
|
||||
@Deprecated("Use findAll() instead.", ReplaceWith("findAll(input, startIndex)"), level = DeprecationLevel.ERROR)
|
||||
public fun matchAll(input: CharSequence, startIndex: Int = 0): Sequence<MatchResult> = findAll(input, startIndex)
|
||||
|
||||
/**
|
||||
* Attempts to match the entire [input] CharSequence against the pattern.
|
||||
*
|
||||
|
||||
@@ -111,10 +111,6 @@ public fun String.replace(oldValue: String, newValue: String, ignoreCase: Boolea
|
||||
public fun String.replace(oldChar: Char, newChar: Char, ignoreCase: Boolean = false): String =
|
||||
nativeReplace(RegExp(Regex.escape(oldChar.toString()), if (ignoreCase) "gi" else "g"), newChar.toString())
|
||||
|
||||
@Deprecated("Use replaceFirst(String, String) instead.", ReplaceWith("replaceFirst(oldValue, newValue, ignoreCase = ignoreCase)"), level = DeprecationLevel.ERROR)
|
||||
public fun String.replaceFirstLiteral(oldValue: String, newValue: String, ignoreCase: Boolean = false): String =
|
||||
nativeReplace(RegExp(Regex.escape(oldValue), if (ignoreCase) "i" else ""), Regex.escapeReplacement(newValue))
|
||||
|
||||
public fun String.replaceFirst(oldValue: String, newValue: String, ignoreCase: Boolean = false): String =
|
||||
nativeReplace(RegExp(Regex.escape(oldValue), if (ignoreCase) "i" else ""), Regex.escapeReplacement(newValue))
|
||||
|
||||
|
||||
@@ -1,9 +0,0 @@
|
||||
package QUnit
|
||||
|
||||
/**
|
||||
* The [QUnit](http://qunitjs.com/) API
|
||||
*/
|
||||
|
||||
@Deprecated("QUnit.ok is going to be removed from the standard library", level = DeprecationLevel.ERROR)
|
||||
public external fun ok(actual: Boolean, message: String?): Unit
|
||||
|
||||
Reference in New Issue
Block a user