Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 080b7a9

Browse filesBrowse files
committed
VisualSortArray: Deleted some unnecessary logic.
1 parent 784db28 commit 080b7a9
Copy full SHA for 080b7a9

File tree

Expand file treeCollapse file tree

1 file changed

+0
-4
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+0
-4
lines changed

‎src/io/nayuki/sortalgodemo/visual/VisualSortArray.java

Copy file name to clipboardExpand all lines: src/io/nayuki/sortalgodemo/visual/VisualSortArray.java
-4Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -103,8 +103,6 @@ public void finishInitialization() {
103103
/* Comparison and swapping */
104104

105105
@Override public int compare(int i, int j) {
106-
if (Thread.interrupted())
107-
throw new StopException();
108106

109107
setElementInternal(i, ElementState.COMPARING);
110108
setElementInternal(j, ElementState.COMPARING);
@@ -124,8 +122,6 @@ public void finishInitialization() {
124122
values.setOpaque(j, x);
125123
if (!isInitialized)
126124
return;
127-
if (Thread.interrupted())
128-
throw new StopException();
129125
swapCount.setOpaque(swapCount.getPlain() + 1);
130126
setElementInternal(i, ElementState.ACTIVE);
131127
setElementInternal(j, ElementState.ACTIVE);

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.