mirror of
https://github.com/DarkPlacesEngine/gmqcc.git
synced 2025-02-21 02:40:56 +00:00
removing ir_function_get_local - it's unused
This commit is contained in:
parent
613e1e7247
commit
060f995ca4
2 changed files with 0 additions and 16 deletions
15
ir.c
15
ir.c
|
@ -547,25 +547,10 @@ bool ir_function_finalize(ir_function *self)
|
|||
return true;
|
||||
}
|
||||
|
||||
ir_value* ir_function_get_local(ir_function *self, const char *name)
|
||||
{
|
||||
size_t i;
|
||||
for (i = 0; i < vec_size(self->locals); ++i) {
|
||||
if (!strcmp(self->locals[i]->name, name))
|
||||
return self->locals[i];
|
||||
}
|
||||
return NULL;
|
||||
}
|
||||
|
||||
ir_value* ir_function_create_local(ir_function *self, const char *name, int vtype, bool param)
|
||||
{
|
||||
ir_value *ve;
|
||||
|
||||
/*
|
||||
if (ir_function_get_local(self, name))
|
||||
return NULL;
|
||||
*/
|
||||
|
||||
if (param &&
|
||||
vec_size(self->locals) &&
|
||||
self->locals[vec_size(self->locals)-1]->store != store_param) {
|
||||
|
|
1
ir.h
1
ir.h
|
@ -271,7 +271,6 @@ void ir_function_collect_value(ir_function*, ir_value *value);
|
|||
|
||||
bool ir_function_set_name(ir_function*, const char *name);
|
||||
|
||||
ir_value* ir_function_get_local(ir_function *self, const char *name);
|
||||
ir_value* ir_function_create_local(ir_function *self, const char *name, int vtype, bool param);
|
||||
|
||||
bool GMQCC_WARN ir_function_finalize(ir_function*);
|
||||
|
|
Loading…
Reference in a new issue