forked from github/server
remove now-obsolete function
This commit is contained in:
parent
53bc4eee11
commit
3a8f682bea
|
@ -43,16 +43,6 @@ pf_generic get_function(const char *name)
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
const char *get_functionname(pf_generic fun)
|
|
||||||
{
|
|
||||||
function_list *fl = functionlist;
|
|
||||||
while (fl && fl->fun != fun)
|
|
||||||
fl = fl->next;
|
|
||||||
if (fl)
|
|
||||||
return fl->name;
|
|
||||||
return NULL;
|
|
||||||
}
|
|
||||||
|
|
||||||
void register_function(pf_generic fun, const char *name)
|
void register_function(pf_generic fun, const char *name)
|
||||||
{
|
{
|
||||||
function_list *fl = (function_list *) malloc(sizeof(function_list));
|
function_list *fl = (function_list *) malloc(sizeof(function_list));
|
||||||
|
|
|
@ -24,7 +24,6 @@ extern "C" {
|
||||||
|
|
||||||
typedef void (*pf_generic) (void);
|
typedef void (*pf_generic) (void);
|
||||||
|
|
||||||
extern const char *get_functionname(pf_generic fun);
|
|
||||||
extern pf_generic get_function(const char *name);
|
extern pf_generic get_function(const char *name);
|
||||||
extern void register_function(pf_generic fun, const char *name);
|
extern void register_function(pf_generic fun, const char *name);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue