Commit e25f98b5 authored by Morten Welinder's avatar Morten Welinder

Delete a bunch of unused variables, mostly.

parent 7c66613b
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
......@@ -284,7 +284,6 @@ find_cells_that_match(Value *database, int field, GSList *criterias)
first_row = database->v.cell_range.cell_a.row + 1;
for (row=first_row; row<=last_row; row++) {
GSList *new_item;
Cell *cell, *test_cell;
cell = sheet_cell_get(sheet, field, row);
......
......@@ -86,7 +86,6 @@ static Value *
gnumeric_datevalue (struct FunctionDefinition *fd,
Value *argv [], char **error_string)
{
int year, month, day;
const gchar *datestr;
GDate date;
......@@ -124,7 +123,6 @@ static Value *
gnumeric_edate (struct FunctionDefinition *fd,
Value *argv [], char **error_string)
{
int year, month, day;
int serial, months;
GDate* date;
......
......@@ -503,8 +503,6 @@ get_real_and_imaginary(char *inumber, float_t *real, float_t *im,
char **suffix)
{
char *p;
char buf[256];
int i=0;
*real = 0;
......
......@@ -378,8 +378,7 @@ gnumeric_pv (struct FunctionDefinition *i, Value *argv [], char **error_string)
fvifa = calculate_fvifa(rate,nper);
return value_new_float ( ( (-1.0) * fv - pmt * ( 1.0 + rate * type ) * fvifa ) / pvif );
return value_new_float ((pmt * (1 + rate * type) * fvifa - fv) / pvif);
}
static char *help_npv = {
......@@ -400,7 +399,6 @@ static int
callback_function_npv (Sheet *sheet, Value *value, char **error_string, void *closure)
{
financial_npv_t *mm = closure;
float tmp;
switch (value->type){
case VALUE_INTEGER:
......
......@@ -322,7 +322,6 @@ static char *help_lookup = {
static Value *
gnumeric_lookup (struct FunctionDefinition *i, Value *argv [], char **error_string)
{
Value *v1, *ans;
int height, width;
const Value *next_largest = NULL;
int next_largest_x = 0;
......@@ -568,9 +567,9 @@ gnumeric_rows (struct FunctionDefinition *i, Value *argv [], char **error_string
}
FunctionDefinition lookup_functions [] = {
{ "choose", 0, "index,value...", &help_choose, gnumeric_choose, NULL },
{ "choose", 0, "index,value...", &help_choose, gnumeric_choose, NULL },
{ "column", "?", "ref", &help_column, gnumeric_column, NULL },
{ "columns", "A", "ref", &help_column, NULL, gnumeric_columns },
{ "columns", "A", "ref", &help_columns, NULL, gnumeric_columns },
{ "hlookup", "?Af|b","val,range,col_idx,approx", &help_hlookup, NULL, gnumeric_hlookup },
{ "lookup", "?A|r", "val,range,range", &help_lookup, NULL, gnumeric_lookup },
{ "offset", "rffff","ref,row,col,hight,width", &help_offset, NULL, gnumeric_offset },
......
This diff is collapsed.
......@@ -602,7 +602,7 @@ static Value *
gnumeric_replace (struct FunctionDefinition *i, Value *argv [], char **error_string)
{
Value *v;
gchar *s, *p;
gchar *s;
gint start, num, oldlen, newlen;
if (argv[0]->type != VALUE_STRING ||
......
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment