From 8c394afd86a424989a08626fdbcbef9883fea47f Mon Sep 17 00:00:00 2001 From: Dimitar Dobrev Date: Fri, 5 Oct 2018 19:06:48 +0300 Subject: [PATCH] Simplified a type map in the tests. Signed-off-by: Dimitar Dobrev --- tests/CSharp/CSharp.cs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/tests/CSharp/CSharp.cs b/tests/CSharp/CSharp.cs index 3e183217..c5049bfa 100644 --- a/tests/CSharp/CSharp.cs +++ b/tests/CSharp/CSharp.cs @@ -142,10 +142,7 @@ namespace CppSharp.Tests ClassTemplateSpecialization classTemplateSpecialization; var templateSpecializationType = type as TemplateSpecializationType; if (templateSpecializationType != null) - { - classTemplateSpecialization = templateSpecializationType.GetClassTemplateSpecialization(); - return classTemplateSpecialization.Arguments[0].Type.Type; - } + return templateSpecializationType.Arguments[0].Type.Type; var declaration = ((TagType) type).Declaration; if (declaration.IsDependent) return new TagType(((Class) declaration).TemplateParameters[0]);