Skip to content

Commit

Permalink
Remove Deprecated from Filter classes
Browse files Browse the repository at this point in the history
  • Loading branch information
hymkor committed Apr 30, 2023
1 parent 6ced2db commit 9b4810f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
10 changes: 5 additions & 5 deletions filter.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,28 +6,28 @@ import (

var _BOM = []byte{0xEF, 0xBB, 0xBF}

// Deprecated: ForceGuessAlways should be called when you should guess
// ForceGuessAlways should be called when you should guess
// the encoding for each line repeadedly
func (f *Filter) ForceGuessAlways() {
f.forceGuessAlways()
}

// Deprecated: NewFilter is the constructor for Filter
// NewFilter is the constructor for Filter
func NewFilter(r io.Reader, codepage uintptr) *Filter {
return newFilter(r, codepage)
}

// Deprecated: Scan is like bufio.Scanner.Scan for Filter
// Scan is like bufio.Scanner.Scan for Filter
func (f *Filter) Scan() bool {
return f.scan()
}

// Deprecated: Text is like "bufio".Scanner.Text for Filter
// Text is like "bufio".Scanner.Text for Filter
func (f *Filter) Text() string {
return f.text
}

// Deprecated: Err is like "bufio".Scanner.Err for Filter
// Err is like "bufio".Scanner.Err for Filter
func (f *Filter) Err() error {
return f.err
}
2 changes: 1 addition & 1 deletion filter_unix.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"strings"
)

// Deprecated: Filter is the class like bufio.Scanner but detects the encoding-type
// Filter is the class like bufio.Scanner but detects the encoding-type
// and converts to utf8 on Windows. On other OSes, it works like bufio.Scanner
type Filter struct {
sc *bufio.Scanner
Expand Down
2 changes: 1 addition & 1 deletion filter_windows.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const (
_Utf8Fixed
)

// Deprecated: Filter is the class like bufio.Scanner but detects the encoding-type
// Filter is the class like bufio.Scanner but detects the encoding-type
// and converts to utf8 on Windows. On other OSes, it works like bufio.Scanner
type Filter struct {
sc *bufio.Scanner
Expand Down

0 comments on commit 9b4810f

Please sign in to comment.