From c86856182225c1a784f216f37f30bef48d35472a Mon Sep 17 00:00:00 2001 From: Paul Pacheco Date: Tue, 22 Sep 2020 12:49:38 -0500 Subject: [PATCH] Remove passthrough method --- Assets/Mirror/Editor/Weaver/Weaver.cs | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/Assets/Mirror/Editor/Weaver/Weaver.cs b/Assets/Mirror/Editor/Weaver/Weaver.cs index d1bab3f40..39cc36fd0 100644 --- a/Assets/Mirror/Editor/Weaver/Weaver.cs +++ b/Assets/Mirror/Editor/Weaver/Weaver.cs @@ -94,11 +94,6 @@ internal static void ConfirmGeneratedCodeClass() } } - public static bool IsNetworkBehaviour(TypeDefinition td) - { - return td.IsDerivedFrom(); - } - static void CheckMonoBehaviour(TypeDefinition td) { if (td.IsDerivedFrom()) @@ -112,7 +107,7 @@ static bool WeaveNetworkBehavior(TypeDefinition td) if (!td.IsClass) return false; - if (!IsNetworkBehaviour(td)) + if (!td.IsDerivedFrom()) { CheckMonoBehaviour(td); return false;