Skip to content

Commit 30a1035

Browse files
committed
Remove 2 unused NodeVecs
1 parent 5f61343 commit 30a1035

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

parser/prism/Translator.cc

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3077,9 +3077,11 @@ unique_ptr<parser::Node> Translator::translate(pm_node_t *node) {
30773077
auto [sendLoc, blockLoc] = computeSendLoc(lambdaNode, lambdaNode->body, nullptr, operatorLoc, prismArgs);
30783078

30793079
auto receiver = make_unique<parser::Const>(operatorLoc, nullptr, core::Names::Constants::Kernel());
3080-
auto sendNode =
3081-
make_unique<parser::Send>(sendLoc, move(receiver), core::Names::lambda(), operatorLoc, NodeVec{});
3080+
// auto sendNode =
3081+
// make_unique<parser::Send>(sendLoc, move(receiver), core::Names::lambda(), operatorLoc, NodeVec{});
30823082

3083+
(void)sendLoc; // We'll need these in the real implementation
3084+
(void)blockLoc;
30833085
throw PrismFallback{}; // TODO: Not supported yet
30843086
}
30853087
case PM_LOCAL_VARIABLE_AND_WRITE_NODE: { // And-assignment to a local variable, e.g. `local &&= false`
@@ -3525,7 +3527,6 @@ unique_ptr<parser::Node> Translator::translate(pm_node_t *node) {
35253527
auto superNode = down_cast<pm_super_node>(node);
35263528

35273529
auto blockArgumentNode = superNode->block;
3528-
NodeVec returnValues;
35293530

35303531
if (blockArgumentNode) { // Adjust the location to exclude the literal block argument.
35313532
const uint8_t *start = superNode->base.location.start;

0 commit comments

Comments
 (0)