Commit 026e93f
committed
function-pointer-removal: drop unused set
The compute_called_functions method maintains two sets, 'done' and
'functions'. The set 'done' is only used to determine whether an element
can be skipped. Since the content of the two sets is the same, the set
'done' can be dropped, and 'functions' can be used instead. Hence, this
commit drops the set 'done'.
Furthermore, the return value of insert includes a bool that indicates
the success of the insert operation. In case insertion failed, the element
has been present already, so that we can merge the find+insert into a
single insert operation.
Fixes: diffblue#17831 parent 0f9c202 commit 026e93f
1 file changed
+1
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
80 | 80 | | |
81 | 81 | | |
82 | 82 | | |
83 | | - | |
84 | 83 | | |
85 | 84 | | |
86 | 85 | | |
| |||
91 | 90 | | |
92 | 91 | | |
93 | 92 | | |
94 | | - | |
| 93 | + | |
95 | 94 | | |
96 | 95 | | |
97 | | - | |
98 | | - | |
99 | | - | |
100 | 96 | | |
101 | 97 | | |
102 | 98 | | |
| |||
0 commit comments