Skip to content

Commit

Permalink
eliminate method for test
Browse files Browse the repository at this point in the history
  • Loading branch information
esaulpaugh committed Aug 10, 2024
1 parent cf298c3 commit ed70787
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
4 changes: 0 additions & 4 deletions src/main/java/com/esaulpaugh/headlong/abi/TypeFactory.java
Original file line number Diff line number Diff line change
Expand Up @@ -100,10 +100,6 @@ private TypeFactory() {}
LEGACY_BASE_TYPE_MAP = Collections.unmodifiableMap(localLegacy);
}

static int getBaseTypeMapSize() {
return Collections.unmodifiableMap(BASE_TYPE_MAP).size();
}

private static void mapInt(Map<String, ABIType<?>> map, String type, int bitLen, boolean unsigned) {
map.put(type, new IntType(type, bitLen, unsigned));
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ public class MonteCarloTestCase {
"uint8", "uint80", "uint88", "uint96",
};

assertEquals(orderedKeys.length, TypeFactory.getBaseTypeMapSize());
assertEquals(109 /*TypeFactory.mapSize()*/, orderedKeys.length);

for (String key : orderedKeys) {
ABIType<?> type = TypeFactory.create(key);
Expand Down

0 comments on commit ed70787

Please sign in to comment.