From 694b62730999667cbbfbe4f844cf70bdf97dc3b7 Mon Sep 17 00:00:00 2001 From: RMidhunSuresh Date: Thu, 15 Jul 2021 23:15:23 +0530 Subject: [PATCH] Inline method Signed-off-by: RMidhunSuresh --- src/domain/session/leftpanel/LeftPanelViewModel.js | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/src/domain/session/leftpanel/LeftPanelViewModel.js b/src/domain/session/leftpanel/LeftPanelViewModel.js index 9cdb099b..13583b14 100644 --- a/src/domain/session/leftpanel/LeftPanelViewModel.js +++ b/src/domain/session/leftpanel/LeftPanelViewModel.js @@ -93,25 +93,19 @@ export class LeftPanelViewModel extends ViewModel { } } - _pathForRightPanel(path) { - let _path = path; - _path = addPanelIfNeeded(this.navigation, _path); - return _path; - } - toggleGrid() { const room = this.navigation.path.get("room"); let path = this.navigation.path.until("session"); if (this.gridEnabled) { if (room) { path = path.with(room); - path = this._pathForRightPanel(path); + path = addPanelIfNeeded(this.navigation, path); } } else { if (room) { path = path.with(this.navigation.segment("rooms", [room.value])); path = path.with(room); - path = this._pathForRightPanel(path); + path = addPanelIfNeeded(this.navigation, path); } else { path = path.with(this.navigation.segment("rooms", [])); path = path.with(this.navigation.segment("empty-grid-tile", 0));