| ... | @@ -90,9 +90,7 @@ fn joinSepMaybeZ(allocator: Allocator, separator: u8, comptime sepPredicate: fn | ... | @@ -90,9 +90,7 @@ fn joinSepMaybeZ(allocator: Allocator, separator: u8, comptime sepPredicate: fn |
| 90 | var sum: usize = paths[first_path_index].len; | 90 | var sum: usize = paths[first_path_index].len; |
| 91 | var prev_path = paths[first_path_index]; | 91 | var prev_path = paths[first_path_index]; |
| 92 | assert(prev_path.len > 0); | 92 | assert(prev_path.len > 0); |
| 93 | var i: usize = first_path_index + 1; | 93 | for (paths[first_path_index + 1 ..]) |this_path| { |
| 94 | while (i < paths.len) : (i += 1) { | | |
| 95 | const this_path = paths[i]; | | |
| 96 | if (this_path.len == 0) continue; | 94 | if (this_path.len == 0) continue; |
| 97 | const prev_sep = sepPredicate(prev_path[prev_path.len - 1]); | 95 | const prev_sep = sepPredicate(prev_path[prev_path.len - 1]); |
| 98 | const this_sep = sepPredicate(this_path[0]); | 96 | const this_sep = sepPredicate(this_path[0]); |
| ... | @@ -112,9 +110,7 @@ fn joinSepMaybeZ(allocator: Allocator, separator: u8, comptime sepPredicate: fn | ... | @@ -112,9 +110,7 @@ fn joinSepMaybeZ(allocator: Allocator, separator: u8, comptime sepPredicate: fn |
| 112 | var buf_index: usize = paths[first_path_index].len; | 110 | var buf_index: usize = paths[first_path_index].len; |
| 113 | var prev_path = paths[first_path_index]; | 111 | var prev_path = paths[first_path_index]; |
| 114 | assert(prev_path.len > 0); | 112 | assert(prev_path.len > 0); |
| 115 | var i: usize = first_path_index + 1; | 113 | for (paths[first_path_index + 1 ..]) |this_path| { |
| 116 | while (i < paths.len) : (i += 1) { | | |
| 117 | const this_path = paths[i]; | | |
| 118 | if (this_path.len == 0) continue; | 114 | if (this_path.len == 0) continue; |
| 119 | const prev_sep = sepPredicate(prev_path[prev_path.len - 1]); | 115 | const prev_sep = sepPredicate(prev_path[prev_path.len - 1]); |
| 120 | const this_sep = sepPredicate(this_path[0]); | 116 | const this_sep = sepPredicate(this_path[0]); |