From f342640290f8a294fe122ba3201a0b61c308eaf8 Mon Sep 17 00:00:00 2001 From: Nav Date: Mon, 21 Sep 2026 04:38:34 +0000 Subject: [PATCH] Remove unreferenced isPopulatedObjectExpression helper Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> --- tools/oxlint/anti-slop/shared/dictionary-types.ts | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/tools/oxlint/anti-slop/shared/dictionary-types.ts b/tools/oxlint/anti-slop/shared/dictionary-types.ts index 86517004..f9def446 100644 --- a/tools/oxlint/anti-slop/shared/dictionary-types.ts +++ b/tools/oxlint/anti-slop/shared/dictionary-types.ts @@ -464,19 +464,6 @@ function classifyAliasBroadTarget( ); } -export function isPopulatedObjectExpression(expression: ESTree.Expression): boolean { - let current = expression; - while ( - current.type === "ParenthesizedExpression" || - current.type === "TSAsExpression" || - current.type === "TSTypeAssertion" || - current.type === "TSNonNullExpression" - ) { - current = current.expression; - } - return current.type === "ObjectExpression" && current.properties.length > 0; -} - export function isKnownEvidenceExpression(expression: ESTree.Expression): boolean { let current = expression; while (