Skip to content

Commit 78c9e38

Browse files
committed
Remove unused 'vm' lambda captures
1 parent 771ef17 commit 78c9e38

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

vm/vm/main/utils.hh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -380,7 +380,7 @@ nativeint ozVSLengthForBufferNoRaise(VM vm, RichNode vs) {
380380
} else if (matchesCons(vm, vs, wildcard(), wildcard())) {
381381
nativeint result = 0;
382382
bool ok = ozListForEachNoRaise(vm, vs,
383-
[vm, &result] (char32_t c) {
383+
[&result] (char32_t c) {
384384
result += (sizeof(char32_t) / sizeof(char));
385385
}
386386
);
@@ -433,7 +433,7 @@ bool ozVSGetNoRaise(VM vm, RichNode vs, std::vector<char>& output) {
433433
return true;
434434
} else if (matchesCons(vm, vs, wildcard(), wildcard())) {
435435
return ozListForEachNoRaise(vm, vs,
436-
[vm, &output] (char32_t c) {
436+
[&output] (char32_t c) {
437437
char buffer[4];
438438
nativeint length = toUTF(c, buffer);
439439
std::copy_n(buffer, length, std::back_inserter(output));
@@ -521,7 +521,7 @@ bool ozVBSGetNoRaise(VM vm, RichNode vbs, std::vector<C>& output) {
521521
return true;
522522
} else if (matchesCons(vm, vbs, wildcard(), wildcard())) {
523523
return ozListForEachNoRaise(vm, vbs,
524-
[vm, &output] (unsigned char b) {
524+
[&output] (unsigned char b) {
525525
output.push_back(b);
526526
}
527527
);

0 commit comments

Comments
 (0)