commit ccd8bbaedfb619d07fabcb2aee4cf4ab51f7a9a1 Author: Karsten Loesing karsten.loesing@gmx.net Date: Mon Aug 20 19:57:06 2018 +0200
Remove unused attribute. --- .../java/org/torproject/descriptor/impl/DescriptorReaderImpl.java | 7 ------- 1 file changed, 7 deletions(-)
diff --git a/src/main/java/org/torproject/descriptor/impl/DescriptorReaderImpl.java b/src/main/java/org/torproject/descriptor/impl/DescriptorReaderImpl.java index 8b0c64c..5ce99e1 100644 --- a/src/main/java/org/torproject/descriptor/impl/DescriptorReaderImpl.java +++ b/src/main/java/org/torproject/descriptor/impl/DescriptorReaderImpl.java @@ -125,8 +125,6 @@ public class DescriptorReaderImpl implements DescriptorReader {
private BlockingIteratorImpl<Descriptor> descriptorQueue;
- private File autoSaveHistoryFile; - private File manualSaveHistoryFile;
private List<File> tarballs = new ArrayList<>(); @@ -146,7 +144,6 @@ public class DescriptorReaderImpl implements DescriptorReader { File manualSaveHistoryFile, SortedMap<String, Long> excludedFiles) { this.descriptorFiles = descriptorFiles; this.descriptorQueue = descriptorQueue; - this.autoSaveHistoryFile = autoSaveHistoryFile; this.manualSaveHistoryFile = manualSaveHistoryFile; if (excludedFiles != null) { this.excludedFilesBefore = excludedFiles; @@ -156,7 +153,6 @@ public class DescriptorReaderImpl implements DescriptorReader {
public void run() { try { - this.readOldHistory(this.autoSaveHistoryFile); this.readOldHistory(this.manualSaveHistoryFile); this.readDescriptorFiles(); this.readTarballs(); @@ -169,9 +165,6 @@ public class DescriptorReaderImpl implements DescriptorReader { this.descriptorQueue.setOutOfDescriptors(); } } - if (this.hasFinishedReading) { - this.writeNewHistory(this.autoSaveHistoryFile); - } }
private void readOldHistory(File historyFile) {
tor-commits@lists.torproject.org