MCPcopy Index your code
hub / github.com/BombusMod/BombusMod / deleteAll

Method deleteAll

src/main/java/Archive/MessageArchive.java:91–106  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

89 }
90
91 public void deleteAll() {
92 try {
93 int i=-1;
94 int num=rs.getNumRecords();
95 while (true) {
96 i=i+1;
97 rs.deleteRecord(getRecordId(i));
98
99 if (num==i) break;
100 }
101 } catch (Exception e) {}
102 try {
103 indexes.removeAllElements();
104 RecordStore.deleteRecordStore((where==1)?ARCHIVE:TEMPLATES);
105 } catch (Exception e) {}
106 }
107
108 public int freeSpace(){
109 try {

Callers 1

yesMethod · 0.80

Calls 4

getRecordIdMethod · 0.95
deleteRecordStoreMethod · 0.95
deleteRecordMethod · 0.65
getNumRecordsMethod · 0.45

Tested by

no test coverage detected