Browse Source

Deleted an unused method.

Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
pull/904/head
Dimitar Dobrev 8 years ago
parent
commit
2f2f13f352
  1. 15
      src/AST/ClassExtensions.cs

15
src/AST/ClassExtensions.cs

@ -130,21 +130,6 @@ namespace CppSharp.AST @@ -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;

Loading…
Cancel
Save