Skip to content

Commit

Permalink
refactor(ansi): remove NewModes function
Browse files Browse the repository at this point in the history
  • Loading branch information
aymanbagabas committed Feb 3, 2025
1 parent 7304283 commit ac5dabe
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions ansi/modes.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,6 @@ package ansi
// all modes are [ModeNotRecognized].
type Modes map[Mode]ModeSetting

// NewModes creates a new Modes map. By default, all modes are
// [ModeNotRecognized].
func NewModes() Modes {
return make(Modes)
}

// Get returns the setting of a terminal mode. If the mode is not set, it
// returns [ModeNotRecognized].
func (m Modes) Get(mode Mode) ModeSetting {
Expand Down

0 comments on commit ac5dabe

Please sign in to comment.