Skip to content

Commit

Permalink
Remove commented code
Browse files Browse the repository at this point in the history
  • Loading branch information
trungleduc committed Oct 31, 2024
1 parent 777bafc commit d3ffc71
Showing 1 changed file with 0 additions and 34 deletions.
34 changes: 0 additions & 34 deletions packages/base/src/panelview/leftpanel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ import {
JupyterCadDoc,
IJupyterCadTracker,
IJCadFormSchemaRegistry
// IJupyterCadModel,
// IJupyterCadClientState
} from '@jupytercad/schema';
import { SidePanel } from '@jupyterlab/ui-components';

Expand Down Expand Up @@ -33,38 +31,6 @@ export class LeftPanelWidget extends SidePanel {
});
this.addWidget(properties);

// const updateTitle = (
// sender: IJupyterCadModel,
// clients: Map<number, IJupyterCadClientState>
// ) => {
// /* */
// };
// let currentModel: IJupyterCadModel | undefined = undefined;
// this._model.documentChanged.connect((_, changed) => {
// if (changed) {
// if (currentModel) {
// currentModel.clientStateChanged.disconnect(updateTitle);
// }

// if (changed.context.model.sharedModel.editable) {
// currentModel = changed.context.model;
// const clients = currentModel.sharedModel.awareness.getStates() as Map<
// number,
// IJupyterCadClientState
// >;
// updateTitle(currentModel, clients);
// currentModel.clientStateChanged.connect(updateTitle);

// properties.show();
// } else {
// // header.title.label = `${changed.context.localPath} - Read Only`;
// properties.hide();
// }
// } else {
// // header.title.label = '-';
// }
// });

options.tracker.currentChanged.connect((_, changed) => {
if (changed) {
header.title.label = changed.context.localPath;
Expand Down

0 comments on commit d3ffc71

Please sign in to comment.