Skip to content

Commit

Permalink
Remove no longer used rbffi_Type_Find()
Browse files Browse the repository at this point in the history
  • Loading branch information
eregon committed Jan 7, 2019
1 parent 7864b82 commit 96bf421
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 19 deletions.
18 changes: 0 additions & 18 deletions ext/ffi_c/Type.c
Expand Up @@ -235,24 +235,6 @@ rbffi_Type_Lookup(VALUE name)
return Qnil;
}

/**
* rbffi_Type_Find() is like rbffi_Type_Lookup, but an error is raised if the
* type is not found.
*/
VALUE
rbffi_Type_Find(VALUE name)
{
VALUE rbType = rbffi_Type_Lookup(name);

if (!RTEST(rbType)) {
VALUE s = rb_inspect(name);
rb_raise(rb_eTypeError, "invalid type, %s", RSTRING_PTR(s));
RB_GC_GUARD(s);
}

return rbType;
}

void
rbffi_Type_Init(VALUE moduleFFI)
{
Expand Down
1 change: 0 additions & 1 deletion ext/ffi_c/Type.h
Expand Up @@ -52,7 +52,6 @@ struct Type_ {

extern VALUE rbffi_TypeClass;
extern VALUE rbffi_Type_Lookup(VALUE type);
extern VALUE rbffi_Type_Find(VALUE type);

#ifdef __cplusplus
}
Expand Down

0 comments on commit 96bf421

Please sign in to comment.