Remove extraneous methods

This commit is contained in:
Christian Rocha 2020-07-29 20:04:09 -04:00
parent 54a0d84255
commit dbd40713ce
No known key found for this signature in database
GPG Key ID: D6CC7A16E5878018

View File

@ -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