Skip to content

Commit

Permalink
Remove test code for Copycat
Browse files Browse the repository at this point in the history
  • Loading branch information
Deftu committed Nov 14, 2024
1 parent 649467e commit 79fab0e
Showing 1 changed file with 0 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -148,18 +148,7 @@ private static void preloadCopycat() {
long t1 = System.nanoTime();
try {
// Copycat
/// Ensure native is loaded
Clipboard.getInstance();

/// Ensure copying works
Clipboard clipboard = Clipboard.getInstance();
String currentContent = clipboard.getString();
clipboard.setString("OneConfig Test");
if (!"OneConfig Test".equals(clipboard.getString())) {
throw new IllegalStateException("Failed to set clipboard content");
}

clipboard.setString(currentContent); // Reset clipboard
} catch (Exception e) {
throw new IllegalStateException("Failed to preload necessary Copycat classes", e);
}
Expand Down

0 comments on commit 79fab0e

Please sign in to comment.