refactor!: remove deprecated references

This removes all the `NewModel` functions from all the bubbles and any
deprecated fields and types.
This commit is contained in:
Ayman Bagabas
2024-09-19 13:44:03 -04:00
parent 95541c2f51
commit 09242fdf67
6 changed files with 0 additions and 84 deletions
-16
View File
@@ -52,17 +52,6 @@ type Model struct {
// KeyMap encodes the keybindings recognized by the widget.
KeyMap KeyMap
// Deprecated: customize [KeyMap] instead.
UsePgUpPgDownKeys bool
// Deprecated: customize [KeyMap] instead.
UseLeftRightKeys bool
// Deprecated: customize [KeyMap] instead.
UseUpDownKeys bool
// Deprecated: customize [KeyMap] instead.
UseHLKeys bool
// Deprecated: customize [KeyMap] instead.
UseJKKeys bool
}
// SetTotalPages is a helper function for calculating the total number of pages
@@ -153,11 +142,6 @@ func New(opts ...Option) Model {
return m
}
// NewModel creates a new model with defaults.
//
// Deprecated: use [New] instead.
var NewModel = New
// WithTotalPages sets the total pages.
func WithTotalPages(totalPages int) Option {
return func(m *Model) {