diff --git a/frontend/lib/resolution/resolution-queries.cpp b/frontend/lib/resolution/resolution-queries.cpp index 0d29f458b10b..d27b9e88c407 100644 --- a/frontend/lib/resolution/resolution-queries.cpp +++ b/frontend/lib/resolution/resolution-queries.cpp @@ -2796,13 +2796,6 @@ scopeResolveFunctionQueryBody(Context* context, ID id) { // cause it to be scope resolved). for (auto child: fn->children()) { child->traverse(visitor); - - // Recompute the method receiver after the 'this' formal is - // scope-resolved, when we might be able to gather some information - // about the type on which the method is declared. - //if (fn->isMethod() && child == fn->thisFormal()) { - // visitor.methodReceiverScopes(/*recompute=*/true); - //} } checkForParenlessMethodFieldRedefinition(context, fn, visitor);