Skip to content

Commit

Permalink
Remove hardly used stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
gnodet committed Oct 25, 2020
1 parent aa0c419 commit 4d24cd8
Show file tree
Hide file tree
Showing 23 changed files with 63 additions and 2,198 deletions.
29 changes: 0 additions & 29 deletions jansi/src/main/java/org/fusesource/jansi/Ansi.java
Original file line number Diff line number Diff line change
Expand Up @@ -697,35 +697,6 @@ public Ansi format(String pattern, Object... args) {
return this;
}

/**
* Uses the {@link AnsiRenderer}
* to generate the ANSI escape sequences for the supplied text.
*
* @param text text
* @return this
*
* @since 1.1
*/
public Ansi render(final String text) {
a(AnsiRenderer.render(text));
return this;
}

/**
* String formats and renders the supplied arguments. Uses the {@link AnsiRenderer}
* to generate the ANSI escape sequences.
*
* @param text format
* @param args arguments
* @return this
*
* @since 1.1
*/
public Ansi render(final String text, Object... args) {
a(String.format(AnsiRenderer.render(text), args));
return this;
}

@Override
public String toString() {
flushAttributes();
Expand Down
275 changes: 10 additions & 265 deletions jansi/src/main/java/org/fusesource/jansi/AnsiConsole.java

Large diffs are not rendered by default.

4 changes: 0 additions & 4 deletions jansi/src/main/java/org/fusesource/jansi/AnsiMain.java
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,6 @@ public static void main(String... args) throws IOException {
System.out.println(AnsiConsole.JANSI_PASSTHROUGH + "= " + AnsiConsole.getBoolean(AnsiConsole.JANSI_PASSTHROUGH));
System.out.println(AnsiConsole.JANSI_STRIP + "= " + AnsiConsole.getBoolean(AnsiConsole.JANSI_STRIP));
System.out.println(AnsiConsole.JANSI_FORCE + "= " + AnsiConsole.getBoolean(AnsiConsole.JANSI_FORCE));
System.out.println(AnsiConsole.JANSI_DO_WRAP + "= " + AnsiConsole.getBoolean(AnsiConsole.JANSI_DO_WRAP));
System.out.println(AnsiConsole.JANSI_NO_OPTIMIZE + "= " + AnsiConsole.getBoolean(AnsiConsole.JANSI_NO_OPTIMIZE));
System.out.println(Ansi.DISABLE + "= " + AnsiConsole.getBoolean(Ansi.DISABLE));

System.out.println();
Expand All @@ -90,8 +88,6 @@ public static void main(String... args) throws IOException {
System.out.println("IS_CONEMU: " + AnsiConsole.IS_CONEMU);
System.out.println("IS_CYGWIN: " + AnsiConsole.IS_CYGWIN);
System.out.println("IS_MSYSTEM: " + AnsiConsole.IS_MSYSTEM);
System.out.println("IS_CON_EMU_ANSI: " + AnsiConsole.IS_CON_EMU_ANSI + " (deprecated)");
System.out.println("IS_MINGW_XTERM: " + AnsiConsole.IS_MINGW_XTERM + " (deprecated)");
}

System.out.println();
Expand Down
241 changes: 0 additions & 241 deletions jansi/src/main/java/org/fusesource/jansi/AnsiNoSyncOutputStream.java

This file was deleted.

Loading

0 comments on commit 4d24cd8

Please sign in to comment.