[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [metrics-lib/release] Remove unused attribute.
commit ccd8bbaedfb619d07fabcb2aee4cf4ab51f7a9a1
Author: Karsten Loesing <karsten.loesing@xxxxxxx>
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 mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits