summaryrefslogtreecommitdiff
path: root/src/lib/embryo
diff options
context:
space:
mode:
authorCarsten Haitzler <raster@rasterman.com>2013-01-03 10:02:17 +0000
committerCarsten Haitzler <raster@rasterman.com>2013-01-03 10:02:17 +0000
commit9c864b6f5c55a8a01de2bccf8f149074dc671bad (patch)
treef0abfb8f13f8750062a3329db153731e311556fa /src/lib/embryo
parent59ebafcb85207ffad04fdd857eb3e00af698f7db (diff)
remove redundant code in embryo.
SVN revision: 82054
Diffstat (limited to 'src/lib/embryo')
-rw-r--r--src/lib/embryo/embryo_amx.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/lib/embryo/embryo_amx.c b/src/lib/embryo/embryo_amx.c
index d2882a0aee..6453d38523 100644
--- a/src/lib/embryo/embryo_amx.c
+++ b/src/lib/embryo/embryo_amx.c
@@ -1928,7 +1928,6 @@ embryo_parameter_cell_push(Embryo_Program *ep, Embryo_Cell cell)
1928 pr->string = NULL; 1928 pr->string = NULL;
1929 pr->cell_array = NULL; 1929 pr->cell_array = NULL;
1930 pr->cell_array_size = 0; 1930 pr->cell_array_size = 0;
1931 pr->cell = 0;
1932 pr->cell = cell; 1931 pr->cell = cell;
1933 return 1; 1932 return 1;
1934} 1933}
@@ -1956,11 +1955,10 @@ embryo_parameter_string_push(Embryo_Program *ep, const char *str)
1956 ep->params = pr; 1955 ep->params = pr;
1957 } 1956 }
1958 pr = &(ep->params[ep->params_size - 1]); 1957 pr = &(ep->params[ep->params_size - 1]);
1959 pr->string = NULL; 1958 pr->string = str_dup;
1960 pr->cell_array = NULL; 1959 pr->cell_array = NULL;
1961 pr->cell_array_size = 0; 1960 pr->cell_array_size = 0;
1962 pr->cell = 0; 1961 pr->cell = 0;
1963 pr->string = str_dup;
1964 return 1; 1962 return 1;
1965} 1963}
1966 1964
@@ -1987,8 +1985,6 @@ embryo_parameter_cell_array_push(Embryo_Program *ep, Embryo_Cell *cells, int num
1987 } 1985 }
1988 pr = &(ep->params[ep->params_size - 1]); 1986 pr = &(ep->params[ep->params_size - 1]);
1989 pr->string = NULL; 1987 pr->string = NULL;
1990 pr->cell_array = NULL;
1991 pr->cell_array_size = 0;
1992 pr->cell = 0; 1988 pr->cell = 0;
1993 pr->cell_array = cell_array; 1989 pr->cell_array = cell_array;
1994 pr->cell_array_size = num; 1990 pr->cell_array_size = num;