mirror of
https://github.com/unity-atoms/unity-atoms.git
synced 2025-01-21 23:58:49 -05:00
Cleaning up code that was affected by work on #434
- removed dead code - fixed formatting Commit-Type: Refactor
This commit is contained in:
parent
6b12b87079
commit
71ecf9c572
@ -63,14 +63,10 @@ namespace UnityAtoms
|
||||
#if UNITY_EDITOR
|
||||
|
||||
public static StackTraceEntry Create<T>(T obj, int skipFrames = 0) => AtomPreferences.IsDebugModeEnabled ? new StackTraceEntry(new StackTrace(skipFrames), obj) : null;
|
||||
public static StackTraceEntry Create(object obj, int skipFrames = 0) => AtomPreferences.IsDebugModeEnabled ? new StackTraceEntry(new StackTrace(skipFrames), obj) : null;
|
||||
public static StackTraceEntry Create(int skipFrames = 0) => AtomPreferences.IsDebugModeEnabled ? new StackTraceEntry(new StackTrace(skipFrames)) : null;
|
||||
|
||||
#else
|
||||
public static StackTraceEntry Create<T>(T obj, int skipFrames = 0) => null;
|
||||
|
||||
public static StackTraceEntry Create(object obj, int skipFrames = 0) => null;
|
||||
|
||||
public static StackTraceEntry Create(int skipFrames = 0) => null;
|
||||
#endif
|
||||
|
||||
|
@ -11,7 +11,7 @@ namespace UnityAtoms
|
||||
|
||||
public static void AddStackTrace(int id, StackTraceEntry stackTrace)
|
||||
{
|
||||
if(stackTrace == null) return;
|
||||
if (stackTrace == null) return;
|
||||
if (AtomPreferences.IsDebugModeEnabled)
|
||||
{
|
||||
GetStackTraces(id).Insert(0, stackTrace);
|
||||
|
Loading…
Reference in New Issue
Block a user