From 2f2f13f352635c6cb4b02ac6d8f45ee59bc3034d Mon Sep 17 00:00:00 2001 From: Dimitar Dobrev Date: Fri, 28 Jul 2017 15:29:09 +0300 Subject: [PATCH] Deleted an unused method. Signed-off-by: Dimitar Dobrev --- src/AST/ClassExtensions.cs | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/src/AST/ClassExtensions.cs b/src/AST/ClassExtensions.cs index 09dff4b4..7028dc00 100644 --- a/src/AST/ClassExtensions.cs +++ b/src/AST/ClassExtensions.cs @@ -130,21 +130,6 @@ namespace CppSharp.AST return null; } - public static Method GetMethodByName(this Class @class, string methodName) - { - var method = @class.Methods.FirstOrDefault(m => m.Name == methodName); - if (method != null) - return method; - - foreach (var @base in @class.Bases.Where(b => b.Type.IsClass())) - { - method = @base.Class.GetMethodByName(methodName); - if (method != null) - return method; - } - return null; - } - public static bool HasRefBase(this Class @class) { Class @base = null;