File tree Expand file tree Collapse file tree 2 files changed +12
-14
lines changed Expand file tree Collapse file tree 2 files changed +12
-14
lines changed Original file line number Diff line number Diff line change @@ -29,13 +29,12 @@ bool can_coalesce_up(flapmap_iter it) {
29
29
}
30
30
31
31
void coalesce_up (flapmap_iter it) {
32
- if (can_coalesce_up (it)) {
33
- auto next = it;
34
- ++next;
35
- it->second .duration += next->second .duration ;
36
- it->second .flapcount += next->second .flapcount ;
37
- flapmap.erase (next);
38
- }
32
+ assert (can_coalesce_up (it));
33
+ auto next = it;
34
+ ++next;
35
+ it->second .duration += next->second .duration ;
36
+ it->second .flapcount += next->second .flapcount ;
37
+ flapmap.erase (next);
39
38
}
40
39
41
40
bool can_coalesce_down (flapmap_iter it) {
Original file line number Diff line number Diff line change @@ -29,13 +29,12 @@ bool can_coalesce_up(flapmap_iter it) {
29
29
}
30
30
31
31
void coalesce_up (flapmap_iter it) {
32
- if (can_coalesce_up (it)) {
33
- auto next = it;
34
- ++next;
35
- it->second .duration += next->second .duration ;
36
- it->second .flapcount += next->second .flapcount ;
37
- flapmap.erase (next);
38
- }
32
+ assert (can_coalesce_up (it));
33
+ auto next = it;
34
+ ++next;
35
+ it->second .duration += next->second .duration ;
36
+ it->second .flapcount += next->second .flapcount ;
37
+ flapmap.erase (next);
39
38
}
40
39
41
40
bool can_coalesce_down (flapmap_iter it) {
You can’t perform that action at this time.
0 commit comments