Skip to content

Commit

Permalink
style: Remove some unused variables (OSGeo#3866)
Browse files Browse the repository at this point in the history
* i.segment: remove unused variable

* lib/dspf: remove unused code. Moreover there was 3 unused variables
  • Loading branch information
lbartoletti authored Jun 18, 2024
1 parent b787bcc commit 04fd63c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 17 deletions.
2 changes: 1 addition & 1 deletion imagery/i.segment/parse_args.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ int parse_args(int argc, char *argv[], struct globals *globals)
struct Option *group, *seeds, *bounds, *output, *method, *similarity,
*threshold, *min_segment_size, *hs, *hr, *bsuf,
#ifdef _OR_SHAPE_
*shape_weight, *smooth_weight,
*smooth_weight,
#endif
*mem;
struct Flag *diagonal, *weighted, *ms_a, *ms_p;
Expand Down
16 changes: 0 additions & 16 deletions lib/dspf/cube_io.c
Original file line number Diff line number Diff line change
Expand Up @@ -252,21 +252,6 @@ int read_cube(Cube_data *Cube, file_info *headfax)
return Cube->n_thresh = t_cnt;
}

#ifdef NEWCODE
int my_fread(char *buf, int size, int cnt, FILE *fp)
{
static char in_buf[10240];
static char *start, *end;
char *outp;
int ret;

if (ret = fread(in_buf, 1, 10240, fp))
;

return 0;
}
#else

static int cptr = 0;

int my_fread(char *buf, int size, int cnt, FILE *fp)
Expand Down Expand Up @@ -304,4 +289,3 @@ int new_dspf(file_info *hfax)

return 0;
}
#endif

0 comments on commit 04fd63c

Please sign in to comment.