Skip to content

Commit

Permalink
Removing unused function
Browse files Browse the repository at this point in the history
  • Loading branch information
nagarev committed Dec 13, 2024
1 parent 4407fe6 commit 0b23b0f
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions rskj-core/src/main/java/org/ethereum/vm/VM.java
Original file line number Diff line number Diff line change
Expand Up @@ -125,14 +125,6 @@ private void checkSizeArgument(long size) {
}
}

private int getPositiveInt(DataWord value) {
int intVal = value.intValue();
if (intVal < 0) {
throw Program.ExceptionHelper.notEnoughOpGas(program, op, Long.MAX_VALUE, program.getRemainingGas());
}
return intVal;
}

private long calcMemGas(long oldMemSize, long newMemSize, long copySize) {
long currentGasCost = 0;

Expand Down

0 comments on commit 0b23b0f

Please sign in to comment.