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;