mirror of
https://github.com/peco/peco.git
synced 2026-09-10 07:16:29 -04:00
Remove unused code
This commit is contained in:
parent
fcc6eb3dd9
commit
dfedb3f9d1
20
interface.go
20
interface.go
|
|
@ -353,26 +353,6 @@ type Style struct {
|
|||
bg termbox.Attribute
|
||||
}
|
||||
|
||||
// CtxOptions is the interface that defines that options can be
|
||||
// passed in from the command line
|
||||
type CtxOptions interface {
|
||||
// EnableNullSep should return if the null separator is
|
||||
// enabled (--null)
|
||||
EnableNullSep() bool
|
||||
|
||||
// BufferSize should return the buffer size. By default (i.e.
|
||||
// when it returns 0), the buffer size is unlimited.
|
||||
// (--buffer-size)
|
||||
BufferSize() int
|
||||
|
||||
// InitialIndex is the line number to put the cursor on
|
||||
// when peco starts
|
||||
InitialIndex() int
|
||||
|
||||
// LayoutType returns the name of the layout to use
|
||||
LayoutType() string
|
||||
}
|
||||
|
||||
type Location struct {
|
||||
col int
|
||||
lineno int
|
||||
|
|
|
|||
|
|
@ -10,12 +10,12 @@ import (
|
|||
"github.com/pkg/errors"
|
||||
)
|
||||
|
||||
// BufferSize returns the specified buffer size. Fulfills CtxOptions
|
||||
// BufferSize returns the specified buffer size.
|
||||
func (o CLIOptions) BufferSize() int {
|
||||
return o.OptBufferSize
|
||||
}
|
||||
|
||||
// EnableNullSep returns true if --null was specified. Fulfills CtxOptions
|
||||
// EnableNullSep returns true if --null was specified.
|
||||
func (o CLIOptions) EnableNullSep() bool {
|
||||
return o.OptEnableNullSep
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue