Skip to content

Commit

Permalink
Remove deprecations introduced in 0.10.0
Browse files Browse the repository at this point in the history
  • Loading branch information
BenWoodworth committed Sep 24, 2021
1 parent dccd32d commit 3539b4d
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 117 deletions.
24 changes: 0 additions & 24 deletions src/commonMain/kotlin/DeprecatedNbtExceptions.kt

This file was deleted.

32 changes: 0 additions & 32 deletions src/commonMain/kotlin/NbtRoot.kt

This file was deleted.

61 changes: 0 additions & 61 deletions src/commonMain/kotlin/NbtVariant.kt
Original file line number Diff line number Diff line change
Expand Up @@ -10,37 +10,6 @@ public abstract class NbtVariant private constructor(private val name: String) {

override fun toString(): String = name

@Deprecated(
"Aliases replaced with NbtVariant.* objects of the same name",
ReplaceWith("NbtVariant", "net.benwoodworth.knbt.NbtVariant"),
DeprecationLevel.ERROR,
)
public object Companion {
@Deprecated(
"Changed to object NbtVariant.Java",
ReplaceWith("NbtVariant.Java", "net.benwoodworth.knbt.NbtVariant"),
DeprecationLevel.ERROR,
)
public inline val Java: Java
get() = NbtVariant.Java

@Deprecated(
"Changed to object NbtVariant.Bedrock",
ReplaceWith("NbtVariant.Bedrock", "net.benwoodworth.knbt.NbtVariant"),
DeprecationLevel.ERROR,
)
public inline val Bedrock: Bedrock
get() = NbtVariant.Bedrock

@Deprecated(
"Changed to object NbtVariant.BedrockNetwork",
ReplaceWith("NbtVariant.BedrockNetwork", "net.benwoodworth.knbt.NbtVariant"),
DeprecationLevel.ERROR,
)
public inline val BedrockNetwork: BedrockNetwork
get() = NbtVariant.BedrockNetwork
}

public object Java : NbtVariant("Java") {
override fun getBinarySource(source: BufferedSource): BinarySource =
BigEndianBinarySource(source)
Expand All @@ -64,34 +33,4 @@ public abstract class NbtVariant private constructor(private val name: String) {
override fun getBinarySink(sink: BufferedSink): BinarySink =
LittleEndianBase128BinarySink(sink)
}

@Deprecated(
"Removed in favor of NbtVariant.Java",
ReplaceWith("NbtVariant.Java", "net.benwoodworth.knbt.NbtVariant"),
DeprecationLevel.ERROR,
)
public object BigEndian : NbtVariant("BigEndian") {
override fun getBinarySource(source: BufferedSource): BinarySource = Java.getBinarySource(source)
override fun getBinarySink(sink: BufferedSink): BinarySink = Java.getBinarySink(sink)
}

@Deprecated(
"Removed in favor of NbtVariant.Bedrock",
ReplaceWith("NbtVariant.Bedrock", "net.benwoodworth.knbt.NbtVariant"),
DeprecationLevel.ERROR,
)
public object LittleEndian : NbtVariant("LittleEndian") {
override fun getBinarySource(source: BufferedSource): BinarySource = Bedrock.getBinarySource(source)
override fun getBinarySink(sink: BufferedSink): BinarySink = Bedrock.getBinarySink(sink)
}

@Deprecated(
"Removed in favor of NbtVariant.BedrockNetwork",
ReplaceWith("NbtVariant.BedrockNetwork", "net.benwoodworth.knbt.NbtVariant"),
DeprecationLevel.ERROR,
)
public object LittleEndianBase128 : NbtVariant("LittleEndianBase128") {
override fun getBinarySource(source: BufferedSource): BinarySource = BedrockNetwork.getBinarySource(source)
override fun getBinarySink(sink: BufferedSink): BinarySink = BedrockNetwork.getBinarySink(sink)
}
}

0 comments on commit 3539b4d

Please sign in to comment.