Skip to content

refactor: simplify code by removing duplication and dead code#60

Merged
b-rodrigues merged 1 commit intomainfrom
claude/refactor-simplify-code-YPYsA
Dec 17, 2025
Merged

refactor: simplify code by removing duplication and dead code#60
b-rodrigues merged 1 commit intomainfrom
claude/refactor-simplify-code-YPYsA

Conversation

@b-rodrigues
Copy link
Owner

  • Use imported stripMarkdown() instead of inlining regex 3 times in editor.js
  • Extract createSavePatchIfChanged() helper in document-manager.js
  • Remove unused functions and imports in diff-preview.js

Reduces codebase by ~195 lines while maintaining all functionality.

- Use imported stripMarkdown() instead of inlining regex 3 times in editor.js
- Extract createSavePatchIfChanged() helper in document-manager.js
- Remove unused functions and imports in diff-preview.js

Reduces codebase by ~195 lines while maintaining all functionality.
@b-rodrigues b-rodrigues merged commit fac3f1d into main Dec 17, 2025
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.

2 participants