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 Register contextBaseRegister = null;
|
||||
|
||||
private BigInteger lastContextValue;
|
||||
private int[] lastContextWords;
|
||||
|
||||
public ContextCache() {
|
||||
}
|
||||
|
||||
|
@ -57,10 +54,7 @@ public class ContextCache {
|
|||
}
|
||||
}
|
||||
|
||||
private synchronized int[] getWords(BigInteger value) {
|
||||
if (value.equals(lastContextValue)) {
|
||||
return lastContextWords;
|
||||
}
|
||||
private int[] getWords(BigInteger value) {
|
||||
|
||||
int[] words = new int[context_size];
|
||||
byte[] bytes = value.toByteArray();
|
||||
|
@ -73,8 +67,6 @@ public class ContextCache {
|
|||
}
|
||||
words[i] = word;
|
||||
}
|
||||
lastContextValue = value;
|
||||
lastContextWords = words;
|
||||
return words;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue