Skip to content

chore: remove unused FloatingToc state and methods from ui store#1556

Merged
yanglbme merged 2 commits into
mainfrom
chore/remove-floating-toc-dead-code
May 19, 2026
Merged

chore: remove unused FloatingToc state and methods from ui store#1556
yanglbme merged 2 commits into
mainfrom
chore/remove-floating-toc-dead-code

Conversation

@yanglbme
Copy link
Copy Markdown
Member

The FloatingToc component was removed in a previous refactor, but its state declarations and toggle methods remained in the ui store.

The FloatingToc component was removed in a previous refactor, but its
state declarations and toggle methods remained in the ui store.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings May 19, 2026 12:49
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR cleans up the useUIStore Pinia store by removing leftover FloatingToc-related state and toggle actions that became unused after the FloatingToc component was removed in an earlier refactor.

Changes:

  • Removed persisted UI state for “pin floating TOC” and “show floating TOC”.
  • Removed the corresponding toggle actions and store exports.

Clean up dead code across multiple files:
- Remove commented-out handleEditorChange in SearchTab.vue
- Remove 9 debug console.log calls in AIImageGeneratorPanel.vue
- Remove 3 debug console.log calls in useImageUploader.ts
- Remove 3 debug console.log calls in injected.ts and appmsg.content.ts
- Remove paste failure console.log in EditorContextMenu.vue and EditDropdown.vue
- Remove debug console.log in PostInfo.vue
- Change console.log to console.error for upload failures in file.ts

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@yanglbme yanglbme merged commit 8067fe1 into main May 19, 2026
1 of 2 checks passed
@yanglbme yanglbme deleted the chore/remove-floating-toc-dead-code branch May 25, 2026 00:22
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.

2 participants