Skip to content

Commit

Permalink
remove some webshare code and remove unused session cancel fn
Browse files Browse the repository at this point in the history
  • Loading branch information
sawka committed Mar 19, 2024
1 parent eef9e6d commit 44aea7d
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 34 deletions.
9 changes: 0 additions & 9 deletions src/app/sidebar/main.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -141,15 +141,6 @@ class MainSideBar extends React.Component<MainSideBarProps, {}> {
GlobalCommandRunner.connectionsView();
}

@boundMethod
handleWebSharingClick(): void {
if (GlobalModel.activeMainView.get() == "webshare") {
GlobalModel.showSessionView();
return;
}
GlobalModel.showWebShareView();
}

@boundMethod
handleSettingsClick(): void {
if (GlobalModel.activeMainView.get() == "clientsettings") {
Expand Down
4 changes: 0 additions & 4 deletions src/app/workspace/workspaceview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,6 @@ dayjs.extend(localizedFormat);
class SessionKeybindings extends React.Component<{}, {}> {
componentDidMount() {
let keybindManager = GlobalModel.keybindManager;
keybindManager.registerKeybinding("mainview", "session", "generic:cancel", (waveEvent) => {
GlobalModel.handleSessionCancel();
return true;
});
keybindManager.registerKeybinding("mainview", "session", "app:toggleSidebar", (waveEvent) => {
GlobalModel.handleToggleSidebar();
return true;
Expand Down
21 changes: 0 additions & 21 deletions src/models/model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -373,12 +373,6 @@ class Model {
})();
}

showWebShareView(): void {
mobx.action(() => {
this.activeMainView.set("webshare");
})();
}

getBaseHostPort(): string {
if (this.isDev) {
return appconst.DevServerEndpoint;
Expand Down Expand Up @@ -473,18 +467,6 @@ class Model {
}
}

handleSessionCancel() {
if (this.activeMainView.get() == "webshare") {
this.showSessionView();
return;
}
const inputModel = this.inputModel;
inputModel.toggleInfoMsg();
if (inputModel.inputMode.get() != null) {
inputModel.resetInputMode();
}
}

handleDeleteActiveLine(): boolean {
return this.deleteActiveLine();
}
Expand Down Expand Up @@ -514,9 +496,6 @@ class Model {
if (this.keybindManager.processKeyEvent(e, waveEvent)) {
return;
}
if (this.activeMainView.get() == "bookmarks") {
this.bookmarksModel.handleDocKeyDown(e);
}
}

deleteActiveLine(): boolean {
Expand Down

0 comments on commit 44aea7d

Please sign in to comment.