Skip to content

Commit 5fc4a81

Browse files
committed
wfg.c: Remove unused variables
* misc/pareto/private/wfg.c: Remove unused variables.
1 parent 99a9ee6 commit 5fc4a81

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

ChangeLog

+4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
2017-03-09 Julien Bect <[email protected]>
22

3+
wfg.c: Remove unused variables
4+
5+
* misc/pareto/private/wfg.c: Remove unused variables.
6+
37
stk_example_doe04.m: Add help text
48

59
* examples/02_design_of_experiments/stk_example_doe04.m: Add help

misc/pareto/private/wfg.c

+1-4
Original file line numberDiff line numberDiff line change
@@ -1037,13 +1037,10 @@ void Rlist_extend (RLIST* Rlist, int k, int* p_Ridx)
10371037
int n = Rlist->n;
10381038
int old_size = Rlist->size;
10391039
int new_size = old_size + k;
1040-
int old_allocated_size, block_size, old_block_size;
1040+
int block_size;
10411041

10421042
if (new_size > Rlist->allocated_size)
10431043
{
1044-
old_allocated_size = Rlist->allocated_size;
1045-
old_block_size = n * old_allocated_size;
1046-
10471044
while (new_size > Rlist->allocated_size)
10481045
Rlist->allocated_size *= 2;
10491046
block_size = n * Rlist->allocated_size;

0 commit comments

Comments
 (0)