Skip to content

Commit 7fd9caa

Browse files
committed
cleanup
1 parent be460e2 commit 7fd9caa

1 file changed

Lines changed: 0 additions & 25 deletions

File tree

‎common-tools/clas-reco/src/main/java/org/jlab/clas/reco/RecoMutil.java‎

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -212,31 +212,6 @@ HipoDataEvent decode(int thread, ByteBuffer bytes) {
212212
return hipo;
213213
}
214214

215-
String parseThreads(String t) {
216-
if (t.contains(",")) {
217-
int offset = t.endsWith("+") || t.endsWith("-") ? 1 : 0;
218-
String extra = t.endsWith("+") || t.endsWith("-") ? String.valueOf(t.charAt(t.length()-1)) : "";
219-
t = String.join(",",Arrays.stream(t.substring(0,t.length()-offset).split(","))
220-
.mapToInt(s -> Integer.parseInt(s)).sorted().mapToObj(i -> String.valueOf(i)).toList())
221-
+ extra;
222-
}
223-
taskset = "";
224-
if (t.endsWith("+") || t.endsWith("-")) {
225-
taskset = String.valueOf(t.charAt(t.length()-1));
226-
if (t.contains(",")) {
227-
if (taskset.equals("+"))
228-
ReconUtil.taskset(0, Arrays.stream(getThreads(t)).sorted().max().getAsInt());
229-
else
230-
ReconUtil.taskset(0, Arrays.stream(getThreads(t)).sorted().min().getAsInt());
231-
}
232-
else if (taskset.equals("-"))
233-
ReconUtil.taskset(0, Integer.parseInt(String.valueOf(t.charAt(0))));
234-
else if (taskset.equals("+"))
235-
ReconUtil.taskset(0, 0);
236-
}
237-
return t;
238-
}
239-
240215
/**
241216
* Sort and preserve +/- suffix.
242217
* @param threads

0 commit comments

Comments
 (0)