mirror of
https://github.com/haveno-dex/haveno.git
synced 2025-11-25 14:06:27 -05:00
Remove unused function for test progress reporting
This commit is contained in:
parent
16e2e03a98
commit
123928a7a2
1 changed files with 2 additions and 10 deletions
|
|
@ -102,15 +102,7 @@ public class NetworkStressTest {
|
||||||
System.exit(result.wasSuccessful() ? 0 : 1);
|
System.exit(result.wasSuccessful() ? 0 : 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Return a string of a character repeated a number of times. */
|
/** Print a progress indicator based on the given character. */
|
||||||
private static String nChars(char c, int n) {
|
|
||||||
String ret = "";
|
|
||||||
for (int i = 0; i < n; i++)
|
|
||||||
ret += c;
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
/** Print a progress bar based on the given character. */
|
|
||||||
private void printProgress(char c, int n) {
|
private void printProgress(char c, int n) {
|
||||||
if (n < 1)
|
if (n < 1)
|
||||||
return; // nothing to represent
|
return; // nothing to represent
|
||||||
|
|
@ -124,7 +116,7 @@ public class NetworkStressTest {
|
||||||
System.out.flush();
|
System.out.flush();
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Decrease latch count and print pending as a progress bar based on the given character. */
|
/** Decrease latch count and print a progress indicator based on the given character. */
|
||||||
private void countDownAndPrint(CountDownLatch latch, char c) {
|
private void countDownAndPrint(CountDownLatch latch, char c) {
|
||||||
latch.countDown();
|
latch.countDown();
|
||||||
printProgress(c, (int)latch.getCount());
|
printProgress(c, (int)latch.getCount());
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue