From: fennecdjay Date: Wed, 9 Oct 2019 22:31:45 +0000 (+0200) Subject: :shirt: Remove useless func X-Git-Tag: nightly~2198^2~42 X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=b0098a55172cde2b3ae9aee9f79fd0a66c869b77;p=gwion.git :shirt: Remove useless func --- diff --git a/include/type.h b/include/type.h index 8b6b56e8..7b80a27a 100644 --- a/include/type.h +++ b/include/type.h @@ -30,7 +30,7 @@ ANN2(1,3) ANEW Type new_type(MemPool, const m_uint xid, const m_str name, const ANEW ANN Type type_copy(MemPool, const Type type); ANN m_str get_type_name(const Env, const m_str, const m_uint); ANN Value find_value(const Type, const Symbol); -ANN Func find_func(const Type, const Symbol); +//ANN Func find_func(const Type, const Symbol); ANN m_bool isa(const Type, const Type) __attribute__((pure)); ANN m_bool isres(const Env, const Symbol, const loc_t pos); ANN Type array_type(const Env, const Type, const m_uint); diff --git a/src/oo/type.c b/src/oo/type.c index c88d69de..bcdb2bfd 100644 --- a/src/oo/type.c +++ b/src/oo/type.c @@ -82,7 +82,7 @@ ANN t find_##name(const Type type, const Symbol xid) { \ return type->e->parent ? find_##name(type->e->parent, xid) : NULL; \ } describe_find(value, Value) -describe_find(func, Func) +//describe_find(func, Func) ANN Type typedef_base(Type t) { while(GET_FLAG(t, typedef))