mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-04 18:29:37 +02:00
Remove (useless?) cache of lastContext from ContextCache
This commit is contained in:
parent
53313af55a
commit
03cc1b8468
1 changed files with 1 additions and 9 deletions
|
@ -26,9 +26,6 @@ public class ContextCache {
|
||||||
private int context_size = 0;
|
private int context_size = 0;
|
||||||
private Register contextBaseRegister = null;
|
private Register contextBaseRegister = null;
|
||||||
|
|
||||||
private BigInteger lastContextValue;
|
|
||||||
private int[] lastContextWords;
|
|
||||||
|
|
||||||
public ContextCache() {
|
public ContextCache() {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -57,10 +54,7 @@ public class ContextCache {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private synchronized int[] getWords(BigInteger value) {
|
private int[] getWords(BigInteger value) {
|
||||||
if (value.equals(lastContextValue)) {
|
|
||||||
return lastContextWords;
|
|
||||||
}
|
|
||||||
|
|
||||||
int[] words = new int[context_size];
|
int[] words = new int[context_size];
|
||||||
byte[] bytes = value.toByteArray();
|
byte[] bytes = value.toByteArray();
|
||||||
|
@ -73,8 +67,6 @@ public class ContextCache {
|
||||||
}
|
}
|
||||||
words[i] = word;
|
words[i] = word;
|
||||||
}
|
}
|
||||||
lastContextValue = value;
|
|
||||||
lastContextWords = words;
|
|
||||||
return words;
|
return words;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue