mirror of
https://github.com/haveno-dex/haveno.git
synced 2025-07-11 17:29:26 -04: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);
|
||||
}
|
||||
|
||||
/** Return a string of a character repeated a number of times. */
|
||||
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. */
|
||||
/** Print a progress indicator based on the given character. */
|
||||
private void printProgress(char c, int n) {
|
||||
if (n < 1)
|
||||
return; // nothing to represent
|
||||
|
@ -124,7 +116,7 @@ public class NetworkStressTest {
|
|||
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) {
|
||||
latch.countDown();
|
||||
printProgress(c, (int)latch.getCount());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue