From fd2288e541cb88f2225e6e7541faaa8e9f243059 Mon Sep 17 00:00:00 2001 From: vis2k Date: Thu, 20 May 2021 15:41:15 +0800 Subject: [PATCH] ClientSceneTestsBase: remove tracking --- Assets/Mirror/Tests/Common/ClientSceneTestsBase.cs | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/Assets/Mirror/Tests/Common/ClientSceneTestsBase.cs b/Assets/Mirror/Tests/Common/ClientSceneTestsBase.cs index 9779ab551..b84325a20 100644 --- a/Assets/Mirror/Tests/Common/ClientSceneTestsBase.cs +++ b/Assets/Mirror/Tests/Common/ClientSceneTestsBase.cs @@ -26,8 +26,6 @@ public abstract class ClientSceneTestsBase : MirrorTest protected GameObject invalidPrefab; protected Guid validPrefabGuid; protected Guid anotherGuid; - protected readonly List _createdObjects = new List(); - protected Dictionary prefabs => NetworkClient.prefabs; protected Dictionary spawnHandlers => NetworkClient.spawnHandlers; @@ -58,14 +56,6 @@ public override void TearDown() // reset asset id in case they are changed by tests validPrefabNetworkIdentity.assetId = validPrefabGuid; - foreach (GameObject item in _createdObjects) - { - if (item != null) - { - GameObject.DestroyImmediate(item); - } - } - _createdObjects.Clear(); base.TearDown(); }