Remove all traces of metadataStorageInfo.

The field is never set in SolrLogger, so getMetadataStorageInfo always
returns null.  Attempts to dereference the Map supposedly returned
should thus always terminate abruptly.
This commit is contained in:
Mark H. Wood
2014-01-31 13:31:02 -05:00
parent bd3d5eccf6
commit 5ef301c00b
4 changed files with 4 additions and 101 deletions

View File

@@ -7,7 +7,6 @@
*/
package org.dspace.statistics;
import au.com.bytecode.opencsv.CSVParser;
import au.com.bytecode.opencsv.CSVReader;
import au.com.bytecode.opencsv.CSVWriter;
import com.maxmind.geoip.Location;
@@ -78,8 +77,6 @@ public class SolrLogger
private static final LookupService locationService;
private static Map<String, String> metadataStorageInfo;
private static final boolean useProxies;
private static List<String> statisticYearCores = new ArrayList<String>();
@@ -563,11 +560,6 @@ public class SolrLogger
}
public static Map<String, String> getMetadataStorageInfo()
{
return metadataStorageInfo;
}
/**
* Method just used to log the parents.
* <ul>
@@ -676,18 +668,6 @@ public class SolrLogger
// We have at least one document good
SolrDocument document = response.getResults().get(0);
for (Object storedField : metadataStorageInfo.keySet())
{
// For each of these fields that are stored we are to create a
// list of the values it holds now
java.util.Collection collection = document
.getFieldValues((String) storedField);
List<String> storedVals = new ArrayList<String>();
storedVals.addAll(collection);
// Now add it to our hashmap
currentValsStored.put((String) storedField, storedVals);
}
// System.out.println("HERE");
// Get the info we need
}