Skip to content

Commit

Permalink
XposedBridge: Remove useless log(2) method
Browse files Browse the repository at this point in the history
This is not used by any modules as they all use original Xposed
API, so this method is not defined. Furthermore, this is uselss
as we can always do getStackTraceString(new Throwable()) to
convert throwable to string.
  • Loading branch information
aviraxp authored and MlgmXyysd committed Mar 4, 2020
1 parent 32e1565 commit d4aeddf
Showing 1 changed file with 0 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -173,19 +173,6 @@ public synchronized static void log(Throwable t) {
Log.e(TAG, Log.getStackTraceString(t));
}

/**
* Logs a stack trace to the Xposed modules log with module's name.
*
* <p class="warning"><b>DON'T FLOOD THE LOG!!!</b> This is only meant for error logging.
* If you want to write information/debug messages, use logcat.
*
* @param name The module's name..
* @param t The Throwable object for the stack trace.
*/
public synchronized static void log(String name, Throwable t) {
Log.e(TAG, name + ": " + Log.getStackTraceString(t));
}

/**
* Hook any method (or constructor) with the specified callback. See below for some wrappers
* that make it easier to find a method/constructor in one step.
Expand Down

0 comments on commit d4aeddf

Please sign in to comment.