From dbd40713ce97e56adf69bf03c9689b05327fe1a5 Mon Sep 17 00:00:00 2001 From: Christian Rocha Date: Wed, 29 Jul 2020 20:04:09 -0400 Subject: [PATCH] Remove extraneous methods --- viewport/viewport.go | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/viewport/viewport.go b/viewport/viewport.go index 784a92e..d2bbd23 100644 --- a/viewport/viewport.go +++ b/viewport/viewport.go @@ -37,21 +37,6 @@ type Model struct { lines []string } -// TODO: do we really need this? -func NewModel(width, height int) Model { - return Model{ - Width: width, - Height: height, - } -} - -// TODO: do we really need this? -func (m Model) SetSize(yPos, width, height int) { - m.YPosition = yPos - m.Width = width - m.Height = height -} - // AtTop returns whether or not the viewport is in the very top position. func (m Model) AtTop() bool { return m.YOffset <= 0