chore: remove useless code (#2643)

This commit is contained in:
beautiful-boyyy 2023-11-14 09:48:36 +08:00 committed by GitHub
parent 9108e8cfab
commit 1020f98756
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -232,12 +232,8 @@ export class PanelView extends Component<{
this.lastVisible = currentVisible;
if (this.lastVisible) {
panel.skeleton.postEvent(SkeletonEvents.PANEL_SHOW, panel.name, panel);
// FIXME! remove this line
panel.skeleton.postEvent('leftPanel.show' as any, panel.name, panel);
} else {
panel.skeleton.postEvent(SkeletonEvents.PANEL_HIDE, panel.name, panel);
// FIXME! remove this line
panel.skeleton.postEvent('leftPanel.hide' as any, panel.name, panel);
}
}
}