Skip to content

Commit 8f72a9a

Browse files
committed
refactor(msgpack): remove unused fillParentContainer params
- Remove unused allocator parameter - Remove unused parse_stack parameter - Simplify fillParentContainer signature
1 parent 2309336 commit 8f72a9a

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/msgpack.zig

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3017,7 +3017,7 @@ pub fn PackWithLimits(
30173017
// Fill parent and check if complete
30183018
while (true) {
30193019
const parent = &parse_stack.items[parse_stack.items.len - 1];
3020-
const finished = try fillParentContainer(parent, current_payload, allocator, &parse_stack);
3020+
const finished = try fillParentContainer(parent, current_payload);
30213021

30223022
if (!finished) {
30233023
// Parent needs more elements
@@ -3051,8 +3051,6 @@ pub fn PackWithLimits(
30513051
inline fn fillParentContainer(
30523052
parent: *ParseState,
30533053
child: Payload,
3054-
_: Allocator,
3055-
_: *std.ArrayList(ParseState),
30563054
) !bool {
30573055
switch (parent.container_type) {
30583056
.array => {

0 commit comments

Comments
 (0)