Remove unused code

This commit is contained in:
Daisuke Maki 2016-06-17 14:15:37 +09:00
parent fcc6eb3dd9
commit dfedb3f9d1
2 changed files with 2 additions and 22 deletions

View file

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

View file

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