From 1832be3118415d43fb6ebea69771cb32cbde9207 Mon Sep 17 00:00:00 2001 From: Sebastian Hartte Date: Sat, 29 Oct 2016 14:22:57 +0200 Subject: [PATCH] Removed unused methods. --- src/main/java/appeng/parts/AEBasePart.java | 6 ------ .../java/appeng/parts/networking/PartCableSmart.java | 10 ---------- .../java/appeng/parts/networking/PartDenseCable.java | 10 ---------- 3 files changed, 26 deletions(-) diff --git a/src/main/java/appeng/parts/AEBasePart.java b/src/main/java/appeng/parts/AEBasePart.java index 88da3dc4..c54725b8 100644 --- a/src/main/java/appeng/parts/AEBasePart.java +++ b/src/main/java/appeng/parts/AEBasePart.java @@ -27,7 +27,6 @@ import java.util.Optional; import java.util.Random; import com.google.common.base.Preconditions; -import com.google.common.collect.ImmutableMap; import io.netty.buffer.ByteBuf; @@ -524,11 +523,6 @@ public abstract class AEBasePart implements IPart, IGridProxyable, IActionHost, return false; } - protected ImmutableMap.Builder propertiesForModel( EnumFacing facing ) - { - return ImmutableMap.builder().put( "color", getColor().name() ); - } - public AEPartLocation getSide() { return this.side; diff --git a/src/main/java/appeng/parts/networking/PartCableSmart.java b/src/main/java/appeng/parts/networking/PartCableSmart.java index 310af029..5997cc59 100644 --- a/src/main/java/appeng/parts/networking/PartCableSmart.java +++ b/src/main/java/appeng/parts/networking/PartCableSmart.java @@ -19,10 +19,7 @@ package appeng.parts.networking; -import com.google.common.collect.ImmutableMap; - import net.minecraft.item.ItemStack; -import net.minecraft.util.EnumFacing; import appeng.api.networking.IGridNode; import appeng.api.networking.events.MENetworkChannelsChanged; @@ -105,11 +102,4 @@ public class PartCableSmart extends PartCable } } } - - @Override - protected ImmutableMap.Builder propertiesForModel( EnumFacing facing ) - { - return facing != null ? super.propertiesForModel( facing ).put( "channels", String.valueOf( getChannelsOnSide( facing.ordinal() ) ) ) : super.propertiesForModel( facing ); - } - } diff --git a/src/main/java/appeng/parts/networking/PartDenseCable.java b/src/main/java/appeng/parts/networking/PartDenseCable.java index acab24c2..4b5d0839 100644 --- a/src/main/java/appeng/parts/networking/PartDenseCable.java +++ b/src/main/java/appeng/parts/networking/PartDenseCable.java @@ -19,11 +19,8 @@ package appeng.parts.networking; -import com.google.common.collect.ImmutableMap.Builder; - import net.minecraft.item.ItemStack; import net.minecraft.tileentity.TileEntity; -import net.minecraft.util.EnumFacing; import appeng.api.networking.GridFlags; import appeng.api.networking.IGridHost; @@ -171,11 +168,4 @@ public class PartDenseCable extends PartCable { this.getHost().markForUpdate(); } - - @Override - protected Builder propertiesForModel( EnumFacing facing ) - { - return facing != null ? super.propertiesForModel( facing ).put( "channels", String.valueOf( getChannelsOnSide( facing.ordinal() ) ) ) : super.propertiesForModel( facing ); - } - }