chore: remove useless code (#2643)

This commit is contained in:
beautiful-boyyy 2023-11-14 09:48:36 +08:00 committed by JackLian
parent 82f3a60729
commit ddb690a875

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);
}
}
}