Skip to content

Commit

Permalink
wfg.c: Remove unused variables
Browse files Browse the repository at this point in the history
* misc/pareto/private/wfg.c: Remove unused variables.
  • Loading branch information
jbect committed Mar 9, 2017
1 parent 99a9ee6 commit 5fc4a81
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
4 changes: 4 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
2017-03-09 Julien Bect <julien.bect@centralesupelec.fr>

wfg.c: Remove unused variables

* misc/pareto/private/wfg.c: Remove unused variables.

stk_example_doe04.m: Add help text

* examples/02_design_of_experiments/stk_example_doe04.m: Add help
Expand Down
5 changes: 1 addition & 4 deletions misc/pareto/private/wfg.c
Original file line number Diff line number Diff line change
Expand Up @@ -1037,13 +1037,10 @@ void Rlist_extend (RLIST* Rlist, int k, int* p_Ridx)
int n = Rlist->n;
int old_size = Rlist->size;
int new_size = old_size + k;
int old_allocated_size, block_size, old_block_size;
int block_size;

if (new_size > Rlist->allocated_size)
{
old_allocated_size = Rlist->allocated_size;
old_block_size = n * old_allocated_size;

while (new_size > Rlist->allocated_size)
Rlist->allocated_size *= 2;
block_size = n * Rlist->allocated_size;
Expand Down

0 comments on commit 5fc4a81

Please sign in to comment.