Skip to content

Commit

Permalink
cleanup(tools): remove unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
Mathias-Boulay authored and artdeell committed Dec 27, 2024
1 parent 9a7fb2a commit 99c8ea2
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 deletions app_pojavlauncher/src/main/java/net/kdt/pojavlaunch/Tools.java
Original file line number Diff line number Diff line change
Expand Up @@ -1314,23 +1314,4 @@ public static void dialogForceClose(Context ctx) {
}
}).show();
}

public static void setThreadsPriority(int priority) {
Process.getThreadPriority(Process.myTid());



Map<Thread, StackTraceElement[]> threads = Thread.getAllStackTraces();
for (Thread thread : threads.keySet()) {
//Log.d("Tools, thread: ", thread.getName());
Log.d("Tools, thread: ", thread + " group: " + thread.getThreadGroup());
Log.d("Tools, thread: ", Arrays.toString(thread.getStackTrace()));
Log.d("Tools, thread: ", String.valueOf(thread.getState()));
try {
thread.setPriority(priority);
}catch (Exception e) {
Log.e("Tools: thread", "Failed to set priority", e);
}
}
}
}

0 comments on commit 99c8ea2

Please sign in to comment.