Repository navigation
chore: Remove unreferenced FirstPartyTools and Runtime PublicCandidates - #2007
Conversation
Drop outbound-only members that production scan reports as unused so PR-5 can shrink the FirstPartyTools/Runtime bucket without removing Skill/CLI-backed fields or Unity reflection keepers. Co-authored-by: Cursor <cursoragent@cursor.com>
📝 WalkthroughWalkthroughThe change removes obsolete public APIs and response constructors, simplifies mouse UI overlay state and callers, deletes console-based duplicate assembly validation, and adds surgical-editing guidance. ChangesAPI and overlay cleanup
Estimated code review effort: 3 (Moderate) | ~20 minutes Possibly related issues
Possibly related PRs
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Collapse-only rewrites made the hitGameObjectName removal unreviewable. Restore base wrapping, drop only that argument, and document that agents must not reformat unrelated C# when making surgical triage edits. Co-authored-by: Cursor <cursoragent@cursor.com>
Follow-up: formatting churn removedPushed
|
Keep PR-5 scoped to FirstPartyTools/Runtime deletions; the AGENTS.md rule belongs in a separate docs PR for clear history and review. Co-authored-by: Cursor <cursoragent@cursor.com>
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In
`@Packages/src/Editor/FirstPartyTools/SimulateMouseUi/MouseUiPressActionExecutor.cs`:
- Line 51: Restore the existing argument wrapping and layout for the
SimulateMouseUiOverlayState.Update calls at the affected locations in
MouseUiPressActionExecutor, without changing their arguments or behavior. Keep
the cleanup surgical and avoid unrelated formatting changes.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro Plus
Run ID: 061e9057-a8dd-4466-84a1-f32a426869f6
📒 Files selected for processing (5)
AGENTS.mdPackages/src/Editor/FirstPartyTools/Common/InputRecording/InputReplayUiController.csPackages/src/Editor/FirstPartyTools/SimulateMouseUi/MouseUiIncrementalDragExecutor.csPackages/src/Editor/FirstPartyTools/SimulateMouseUi/MouseUiOneShotDragExecutor.csPackages/src/Editor/FirstPartyTools/SimulateMouseUi/MouseUiPressActionExecutor.cs
| SimulateMouseUiOverlayState.Update( | ||
| MouseAction.Click, inputPos, null, | ||
| targetName, Handles.GetMainGameViewSize()); | ||
| Handles.GetMainGameViewSize()); |
There was a problem hiding this comment.
📐 Maintainability & Code Quality | 🟡 Minor | ⚡ Quick win
Restore the existing argument wrapping.
Line 51 and Line 133 only reformat SimulateMouseUiOverlayState.Update(...); the arguments and behavior are unchanged. Please preserve the prior layout so this surgical cleanup does not add unrelated formatting churn.
As per coding guidelines, “Do not reformat unrelated code; surgical edits must preserve existing wrapping and layout.”
Also applies to: 133-133
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
In
`@Packages/src/Editor/FirstPartyTools/SimulateMouseUi/MouseUiPressActionExecutor.cs`
at line 51, Restore the existing argument wrapping and layout for the
SimulateMouseUiOverlayState.Update calls at the affected locations in
MouseUiPressActionExecutor, without changing their arguments or behavior. Keep
the cleanup surgical and avoid unrelated formatting changes.
Source: Coding guidelines
Summary
PublicCandidatemembers after Skill / CLI / reflection keep-checks (issue Triage the 185 PublicCandidate findings from the dead-code scanner #1997 PR-5).ClearScroll,HitGameObjectName+Updatearity); no extension-facing keepers removed.Decision table
DELETE
ClearConsoleResponse(string)/ parameterless ctorLogEntry()/GetLogsResponse()parameterless ctorsRunTestsResponse()parameterless ctorGameObjectDetails.ErrorMessageInputRecorder.ForceStop()(static facade)UiRaycastHelper.RaycastCanvasSpaceRaycastCanvasSpaceFromSourcesstill usedValidateNoDuplicateAsmdefNamesFromConsoleErrors(+ console regex)KeyboardKeyState.Clear(instance + static)ClearTrackedKeysremainsMouseInputState.IsButtonHeld(instance + static)WatchExpressionStepMonitor.StopSimulateMouseInputOverlayState.ClearScroll(instance + static)Clear/ setter pathsSimulateMouseUiOverlayState.HitGameObjectName+Update(..., hitName, ...)HitGameObjectNamevia tool DTOBoy-scout after delete: removed unused
using UnityEnginefrom asmdef validator; confirmed_scrollActiveUntil/_isStartedstill have live readers; no sole-writer DI seams left behind.KEEP
FindGameObjectsSchema.IncludeInheritedPropertiesdefault-tools.jsontool parameterUnifiedTestCallback.{Run,Test}{Started,Finished}ICallbacks(reflection)NUnitXmlResultExporter.Utf8StringWriter.EncodingTextWriteroverrideReferenceEqualityComparer.Equals/GetHashCodeHashSetcomparer contractGenericConsoleWindowUtility.GetConsoleLogCounts#else(pre–Unity 6)Verification
scripts/check-dead-code.sh→ HC 0uloop compile→ 0 errors / 0 warningsNativeCliInstallerTests/ToolSkillSynchronizerTests, EditMode: NativeCliInstaller progress order and ToolSkillSynchronizer flat-directory detection fail on v3-beta #2001) — out of scope for PR-5Test plan
Updatearity changechore/public-candidate-triage