clean unused code

This commit is contained in:
REAndroid 2023-04-28 15:19:22 +02:00
parent 1fcf5a507e
commit da5dfc03ba

View File

@ -216,20 +216,14 @@ public class PackageBlock extends Chunk<PackageHeader>
return getSpecTypePairArray().getTypeBlock(typeId, qualifiers); return getSpecTypePairArray().getTypeBlock(typeId, qualifiers);
} }
public boolean isEntryGroupMapLocked() {
return entryGroupMapLocked;
}
private void unlockEntryGroup() { private void unlockEntryGroup() {
synchronized (this){ synchronized (this){
if(!this.entryGroupMapLocked){ if(!this.entryGroupMapLocked){
return; return;
} }
System.err.println("\nUnlocking EntryGroupMap ...");
this.entryGroupMapLocked = false;
Map<Integer, EntryGroup> map = this.mEntriesGroup; Map<Integer, EntryGroup> map = this.mEntriesGroup;
map.clear(); map.clear();
createEntryGroupMap(map); createEntryGroupMap(map);
System.err.println("\nEntryGroupMap unlocked!");
} }
} }
private void createEntryGroupMap(Map<Integer, EntryGroup> map){ private void createEntryGroupMap(Map<Integer, EntryGroup> map){
@ -266,7 +260,7 @@ public class PackageBlock extends Chunk<PackageHeader>
return null; return null;
} }
public void updateEntry(Entry entry){ public void updateEntry(Entry entry){
if(isEntryGroupMapLocked()){ if(this.entryGroupMapLocked){
return; return;
} }
if(entry == null || entry.isNull()){ if(entry == null || entry.isNull()){