Code cleanup and remove some unused code

This commit is contained in:
mezz committed 2015-08-02 22:53:19 -07:00
1 parent f0f8c9a984
commit fdf3493ed0
295 files changed
+899 -2840

No files matched your search

@@ -103,13 +103,13 @@ public class ItemLetter extends ItemInventoried {
return icons[size.ordinal()][state.ordinal()];
}
public static int encodeMeta(LetterState state, LetterSize size) {
private static int encodeMeta(LetterState state, LetterSize size) {
int meta = size.ordinal() << 4;
meta |= state.ordinal();
return meta;
}
public static LetterState getState(int meta) {
private static LetterState getState(int meta) {
int ordinal = meta & 0x0f;
LetterState[] values = LetterState.values();
if (ordinal >= values.length) {
@@ -118,7 +118,7 @@ public class ItemLetter extends ItemInventoried {
return values[ordinal];
}
public static LetterSize getSize(int meta) {
private static LetterSize getSize(int meta) {
int ordinal = meta >> 4;
LetterSize[] values = LetterSize.values();
if (ordinal >= values.length) {
@@ -127,7 +127,7 @@ public class ItemLetter extends ItemInventoried {
return values[ordinal];
}
public static LetterSize getSize(ILetter letter) {
private static LetterSize getSize(ILetter letter) {
int count = letter.countAttachments();
if (count > 5) {