Skip to content

Commit

Permalink
removed unused variable
Browse files Browse the repository at this point in the history
  • Loading branch information
Nimaoth committed Oct 14, 2023
1 parent d76b392 commit ce5afc6
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/model_document.nim
Original file line number Diff line number Diff line change
Expand Up @@ -268,8 +268,6 @@ proc updateScrollOffset(self: ModelDocumentEditor, oldCell: Cell) =
if self.cellWidgetContext.isNotNil:
let newCell = self.selection.last.targetCell
if oldCell.isNotNil and self.cellWidgetContext.cellToWidget.contains(oldCell.id):
let oldUINode = self.cellWidgetContext.cellToWidget[oldCell.id]

if newCell.isNotNil and self.cellWidgetContext.cellToWidget.contains(newCell.id):
let newUINode = self.cellWidgetContext.cellToWidget[newCell.id]
let newY = newUINode.transformBounds(self.scrolledNode.parent).y
Expand Down

0 comments on commit ce5afc6

Please sign in to comment.