Skip to content

Commit

Permalink
Remove deprecated close methods
Browse files Browse the repository at this point in the history
  • Loading branch information
Krassnig committed Sep 3, 2024
1 parent 2f0d207 commit 2293633
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 27 deletions.
10 changes: 1 addition & 9 deletions src/main/java/codedraw/BorderlessWindow.java
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ public static void run(Animation animation, int width, int height, int framesPer

BorderlessWindow bw = new BorderlessWindow(width, height);
CodeDrawGUI.run(animation, bw.gui, bw, framesPerSecond, simulationsPerSecond);
bw.close(false);
bw.close();
}


Expand Down Expand Up @@ -266,14 +266,6 @@ public void close() {
gui.close();
}

/**
* Use {@link #close()} instead.
*/
@Deprecated
public void close(boolean ignored) {
close();
}

@Override
public String toString() {
return "BorderlessWindow " + getWidth() + "x" + getHeight();
Expand Down
10 changes: 1 addition & 9 deletions src/main/java/codedraw/CodeDraw.java
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ public static void run(Animation animation, int width, int height, int framesPer

CodeDraw cd = new CodeDraw(width, height);
CodeDrawGUI.run(animation, cd.gui, cd, framesPerSecond, simulationsPerSecond);
cd.close(false);
cd.close();
}

/**
Expand Down Expand Up @@ -347,14 +347,6 @@ public void close() {
gui.close();
}

/**
* Use {@link #close()} instead.
*/
@Deprecated
public void close(boolean ignored) {
close();
}

@Override
public String toString() {
return "CodeDraw " + getWidth() + "x" + getHeight();
Expand Down
10 changes: 1 addition & 9 deletions src/main/java/codedraw/FullScreen.java
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ public static void run(Animation animation, Screen screen, int framesPerSecond,

FullScreen fs = new FullScreen(screen);
CodeDrawGUI.run(animation, fs.gui, fs, framesPerSecond, simulationsPerSecond);
fs.close(false);
fs.close();
}

/**
Expand Down Expand Up @@ -239,14 +239,6 @@ public void close() {
gui.close();
}

/**
* Use {@link #close()} instead.
*/
@Deprecated
public void close(boolean ignored) {
close();
}

@Override
public String toString() {
return "FullScreen " + getWidth() + "x" + getHeight();
Expand Down

0 comments on commit 2293633

Please sign in to comment.