From 71ecf9c572a696b6b41e3681a7846134fa691201 Mon Sep 17 00:00:00 2001 From: Oliver Biwer Date: Thu, 26 Oct 2023 22:39:09 +0200 Subject: [PATCH] Cleaning up code that was affected by work on #434 - removed dead code - fixed formatting Commit-Type: Refactor --- Packages/Core/Runtime/StackTrace/StackTraceEntry.cs | 4 ---- Packages/Core/Runtime/StackTrace/StackTraces.cs | 2 +- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/Packages/Core/Runtime/StackTrace/StackTraceEntry.cs b/Packages/Core/Runtime/StackTrace/StackTraceEntry.cs index 555527aa..63856f9d 100644 --- a/Packages/Core/Runtime/StackTrace/StackTraceEntry.cs +++ b/Packages/Core/Runtime/StackTrace/StackTraceEntry.cs @@ -63,14 +63,10 @@ namespace UnityAtoms #if UNITY_EDITOR public static StackTraceEntry Create(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 obj, int skipFrames = 0) => null; - - public static StackTraceEntry Create(object obj, int skipFrames = 0) => null; - public static StackTraceEntry Create(int skipFrames = 0) => null; #endif diff --git a/Packages/Core/Runtime/StackTrace/StackTraces.cs b/Packages/Core/Runtime/StackTrace/StackTraces.cs index 0623b77d..ffd20cbe 100644 --- a/Packages/Core/Runtime/StackTrace/StackTraces.cs +++ b/Packages/Core/Runtime/StackTrace/StackTraces.cs @@ -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);