mirror of
https://github.com/AngelAuraMC/Amethyst-Android.git
synced 2026-04-24 11:37:15 -04:00
cleanup(tools): remove unused code
This commit is contained in:
committed by
Maksim Belov
parent
9a7fb2ae69
commit
99c8ea2bfd
@@ -1314,23 +1314,4 @@ public final class Tools {
|
||||
}
|
||||
}).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);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user