Skip to content
This repository has been archived by the owner on Feb 2, 2025. It is now read-only.

Commit

Permalink
Remove useless return values
Browse files Browse the repository at this point in the history
  • Loading branch information
esotericenderman committed Feb 2, 2025
1 parent ec17726 commit 5bca55b
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions src/main/java/ca/exp/soundboard/soundboard/Utils.java
Original file line number Diff line number Diff line change
Expand Up @@ -185,30 +185,24 @@ public static void startMp3Decoder() {
}
}

public static boolean initGlobalKeyLibrary() {
public static void initGlobalKeyLibrary() {
try {
GlobalScreen.registerNativeHook();
} catch (NativeHookException exception) {
System.err.println("There was a problem registering the native hook.");
System.err.println(exception.getMessage());
JOptionPane.showMessageDialog(null, exception.getMessage(), GLOBAL_HOTKEY_ERROR, 0);
}

return true;
}

public static boolean deregisterGlobalKeyLibrary() {
public static void deregisterGlobalKeyLibrary() {
if (GlobalScreen.isNativeHookRegistered()) {
try {
GlobalScreen.unregisterNativeHook();
} catch (NativeHookException exception) {
exception.printStackTrace();
}

return true;
}

return false;
}

public static boolean isFileSupported(File file) {
Expand Down

0 comments on commit 5bca55b

Please sign in to comment.