From ecdfaa7a1e8ebe444ced33f3023e37185e8b600f Mon Sep 17 00:00:00 2001 From: JohnCorby Date: Tue, 28 Dec 2021 16:25:15 -0800 Subject: [PATCH] remove useless quantumObject is not IWorldObject check --- QSB/Utility/DebugGUI.cs | 18 ++---------------- 1 file changed, 2 insertions(+), 16 deletions(-) diff --git a/QSB/Utility/DebugGUI.cs b/QSB/Utility/DebugGUI.cs index df9b173d..96d081b1 100644 --- a/QSB/Utility/DebugGUI.cs +++ b/QSB/Utility/DebugGUI.cs @@ -226,14 +226,7 @@ namespace QSB.Utility foreach (var quantumObject in ownedQuantumObjects) { - if (quantumObject is not IWorldObject qsbObj) - { - WriteLine(4, $"NULL QSBOBJ", Color.red); - } - else - { - WriteLine(4, $"{qsbObj.Name} ({qsbObj.ObjectId})"); - } + WriteLine(4, $"{quantumObject.Name} ({quantumObject.ObjectId})"); } } @@ -248,14 +241,7 @@ namespace QSB.Utility if (qo.IsEnabled) { - if (qo is not IWorldObject qsbObj) - { - WriteLine(4, $"NULL QSBOBJ", Color.red); - } - else - { - WriteLine(4, $"{qsbObj.Name} ({qsbObj.ObjectId})"); - } + WriteLine(4, $"{qo.Name} ({qo.ObjectId})"); } } #endregion