remove redundant code in embryo.

SVN revision: 82054
This commit is contained in:
Carsten Haitzler 2013-01-03 10:02:17 +00:00
parent 59ebafcb85
commit 9c864b6f5c
1 changed files with 1 additions and 5 deletions

View File

@ -1928,7 +1928,6 @@ embryo_parameter_cell_push(Embryo_Program *ep, Embryo_Cell cell)
pr->string = NULL;
pr->cell_array = NULL;
pr->cell_array_size = 0;
pr->cell = 0;
pr->cell = cell;
return 1;
}
@ -1956,11 +1955,10 @@ embryo_parameter_string_push(Embryo_Program *ep, const char *str)
ep->params = pr;
}
pr = &(ep->params[ep->params_size - 1]);
pr->string = NULL;
pr->string = str_dup;
pr->cell_array = NULL;
pr->cell_array_size = 0;
pr->cell = 0;
pr->string = str_dup;
return 1;
}
@ -1987,8 +1985,6 @@ embryo_parameter_cell_array_push(Embryo_Program *ep, Embryo_Cell *cells, int num
}
pr = &(ep->params[ep->params_size - 1]);
pr->string = NULL;
pr->cell_array = NULL;
pr->cell_array_size = 0;
pr->cell = 0;
pr->cell_array = cell_array;
pr->cell_array_size = num;