chore: remove unused FloatingToc state and methods from ui store#1556
Merged
Conversation
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>
Contributor
There was a problem hiding this comment.
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The FloatingToc component was removed in a previous refactor, but its state declarations and toggle methods remained in the ui store.