gnumeric r16787 - in trunk: . src



Author: mortenw
Date: Thu Sep 11 23:37:35 2008
New Revision: 16787
URL: http://svn.gnome.org/viewvc/gnumeric?rev=16787&view=rev

Log:
2008-09-11  Morten Welinder  <terra gnome org>

	* src/func-builtin.c (gnumeric_table): Remove dead code.



Modified:
   trunk/ChangeLog
   trunk/src/func-builtin.c

Modified: trunk/src/func-builtin.c
==============================================================================
--- trunk/src/func-builtin.c	(original)
+++ trunk/src/func-builtin.c	Thu Sep 11 23:37:35 2008
@@ -163,7 +163,6 @@
 static GnmValue *
 gnumeric_table (GnmFuncEvalInfo *ei, int argc, GnmExprConstPtr const *argv)
 {
-	GnmExpr const *arg;
 	GnmCell       *in[3], *x_iter, *y_iter;
 	GnmValue      *val[3], *res;
 	GnmCellPos     pos;
@@ -178,7 +177,7 @@
 		return value_new_error_REF (ei->pos);
 
 	for (x = 0; x < 2 ; x++) {
-		arg = (x < argc) ? argv[x] : NULL;
+		GnmExpr const *arg = argv[x];
 		val[x] = NULL;
 		if (NULL != arg && GNM_EXPR_GET_OPER (arg) == GNM_EXPR_OP_CELLREF) {
 			gnm_cellpos_init_cellref (&pos,



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]