mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-18 02:26:21 +08:00
refactor(editor): cleanup dead code (#9300)
This commit is contained in:
@@ -5,10 +5,7 @@ import {
|
||||
} from '@blocksuite/block-std';
|
||||
import { literal } from 'lit/static-html.js';
|
||||
|
||||
import { DataViewBlockService } from './database-service.js';
|
||||
|
||||
export const DataViewBlockSpec: ExtensionType[] = [
|
||||
FlavourExtension('affine:data-view'),
|
||||
DataViewBlockService,
|
||||
BlockViewExtension('affine:data-view', literal`affine-data-view`),
|
||||
];
|
||||
|
||||
@@ -1,13 +0,0 @@
|
||||
import { BlockService } from '@blocksuite/block-std';
|
||||
import { DatabaseSelection } from '@blocksuite/data-view';
|
||||
|
||||
import { DataViewBlockSchema } from './data-view-model.js';
|
||||
|
||||
export class DataViewBlockService extends BlockService {
|
||||
static override readonly flavour = DataViewBlockSchema.model.flavour;
|
||||
|
||||
override mounted(): void {
|
||||
super.mounted();
|
||||
this.selectionManager.register(DatabaseSelection);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user