mirror of
https://github.com/Alfresco/SearchServices.git
synced 2026-09-16 18:12:56 +00:00
SEARCH-486: Remove dead code
This commit is contained in:
+1
-42
@@ -202,47 +202,6 @@ public class DistributedSearchStreamTest extends AbstractAlfrescoDistributedTest
|
||||
{
|
||||
return new Date(new GregorianCalendar(year, month, day, 10, 0).getTimeInMillis());
|
||||
}
|
||||
|
||||
/*
|
||||
private String getShardsString(List<SolrClient> clientList)
|
||||
{
|
||||
StringBuilder buf = new StringBuilder();
|
||||
for(int i=0; i<clientList.size(); ++i) {
|
||||
HttpSolrClient solrClient = (HttpSolrClient)clientList.get(i);
|
||||
|
||||
if(buf.length() > 0) {
|
||||
buf.append(",");
|
||||
}
|
||||
|
||||
buf.append(solrClient.getBaseURL());
|
||||
}
|
||||
return buf.toString();
|
||||
}
|
||||
|
||||
private List<Tuple> getTuples(TupleStream tupleStream) throws IOException {
|
||||
List<Tuple> tuples = new ArrayList();
|
||||
tupleStream.open();
|
||||
try {
|
||||
while (true) {
|
||||
Tuple tuple = tupleStream.read();
|
||||
if (!tuple.EOF) {
|
||||
tuples.add(tuple);
|
||||
} else {
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
finally
|
||||
{
|
||||
try {
|
||||
tupleStream.close();
|
||||
} catch(Exception e2) {
|
||||
e2.printStackTrace();
|
||||
}
|
||||
}
|
||||
|
||||
return tuples;
|
||||
}
|
||||
*/
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user