Skip to content

chore: remove orphaned UI helpers, obsolete checks and unused config - #10

Merged
2002yy merged 1 commit into
mainfrom
codex/retire-unused-ui-helpers-20261120
Nov 19, 2026
Merged

2002yy merged 1 commit into
mainfrom
codex/retire-unused-ui-helpers-20261120

Conversation

@2002yy

@2002yy 2002yy commented Nov 19, 2026

Copy link
Copy Markdown
Owner

AutoClicker-Pro / 本批清理范围

沿“功能 → 实际调用方 → 专项测试 → 配置”的链路核对后,只移除确认已脱离现役产品的对象:

  • StatusBar:移除无实际调用方的 set_ready / set_loading / set_saving / clear 及仅供测试调用的加密提示隐藏开关。真实状态更新、录制与点击事件、错误/成功显示和始终可见的加密安全提示保留。
  • ActionList:移除无人调用的 get_selected_action / delete_selected / clear;现役动作范围选择、编辑、刷新保持原样。
  • ControlButtons:移除没有调用方的 reset,保留现役按钮启停与状态更新。
  • EncryptionManager:删除没有 UI 或调用方、会直接删掉旧密钥和盐、导致历史加密宏文件难以恢复的 reset_key()。未删除任何用户密钥、盐或数据文件;真实加密/解密、旧宏格式兼容完全保留。
  • config/constants.py:移除 25 行完全无人引用、未被 config.__all__ 导出的过期常量;有效的验证规则和配置值不动。
  • 删除历史“仅检查状态栏常量符号是否导入”的重复测试及无产品入口的提示隐藏调用;保留能真正实例化 StatusBar 并更改状态的 GUI 冒烟测试。
  • PROJECT_STRUCTURE.md 不再固定过去的测试总数。

7 files、+3/-107,净减少 104 行。

验证和界限

  • 本地 python -m unittest tests.test_validation tests.test_settings_store tests.test_macro_library tests.test_macros tests.test_encryption -q:55 passed。
  • compileall、git diff --check 全部通过;精确 Git tree 02a576596bfeb06ef6165ed6ef81ceb8b5e952b0 与 GitHub 提交相符。
  • 本地没有 pynput 与可用图形桌面,无法声称完整 GUI/Windows 套件通过。以此 PR 精确 HEAD 的 Windows CI(测试 + PyInstaller)作为合并门禁。
  • 不更改 core/engine.py / utils/hotkey_manager.py / ui/app.py,不触碰 fix: make macro stop interruptible and release held inputs #8 宏中断修复与 fix: make global hotkeys and emergency stop reliable #9 快捷键紧急停止修复。后续若这些 Draft 合并,需重新确认无冲突。
  • 加密宏的历史读取兼容并非过期功能,本批明确保留。

@chatgpt-codex-connector

Copy link
Copy Markdown
Codex Review Summary: ❌ Failed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ❌ Failed 2026-11-19T20:32:01.588752Z
We couldn’t complete this review. Comment @codex review to try again.
2f36fb5 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, you can upgrade your account or add credits to your account and enable them for code reviews in your settings.

@2002yy
2002yy merged commit 60a4440 into main Nov 19, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant