Skip to content

Commit

Permalink
Removed unused method
Browse files Browse the repository at this point in the history
  • Loading branch information
Faboslav committed Jan 14, 2024
1 parent 64397b6 commit 13aaa4a
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ public final class NetworkChannel

public NetworkChannel(String modid, String channel) {
this.channel = new Identifier(modid, channel);
PacketChannelManager.registerChannel(this.channel);
}

public final <T extends Packet<T>> void registerPacket(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,6 @@
@ApiStatus.Internal
public final class PacketChannelManager
{
@ExpectPlatform
public static void registerChannel(Identifier name) {
throw new NotImplementedException();
}

@ExpectPlatform
public static <T extends Packet<T>> void registerS2CPacket(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,6 @@ public final class PacketChannelManagerImpl
private PacketChannelManagerImpl() {
}

public static void registerChannel(Identifier name) {
}

public static <T extends Packet<T>> void registerS2CPacket(
Identifier channel,
Identifier id,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,6 @@ public final class PacketChannelManagerImpl
private static final Map<Identifier, PacketRegistration<?>> PACKETS = new HashMap<>();
private static boolean frozen = false;

public static void registerChannel(Identifier name) {
}

public static void registerPayloads(RegisterPayloadHandlerEvent event) {
frozen = true;

Expand Down

0 comments on commit 13aaa4a

Please sign in to comment.