refactor(editor): remove unused code (#12142)

<!-- This is an auto-generated comment: release notes by coderabbit.ai -->

## Summary by CodeRabbit

- **Refactor**
  - Streamlined internal logic for handling block operations to improve efficiency.
  - Removed unused reactive subject and related code from document handling classes.
  - Renamed a private initialization method for improved clarity.

- **Chores**
  - Cleaned up redundant code and imports to simplify maintenance.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
This commit is contained in:
Saul-Mirone
2025-05-06 09:00:40 +00:00
parent 1994dd6d9d
commit 1e89aa48cb
3 changed files with 2 additions and 15 deletions
@@ -601,9 +601,7 @@ export class Store {
this._yBlocks.observeDeep(this._handleYEvents);
this._yBlocks.forEach((_, id) => {
this._handleYBlockAdd(id, false);
});
this._yBlocks.forEach((_, id) => {
if (id in this._blocks.peek()) {
return;
}