Remove chardet dependency

This commit is contained in:
Zachary Yedidia
2019-01-23 19:22:41 -05:00
parent ad50d7aa56
commit ad487807a5

View File

@@ -12,7 +12,6 @@ import (
"time"
"unicode/utf8"
"github.com/saintfish/chardet"
"github.com/zyedidia/micro/cmd/micro/config"
"github.com/zyedidia/micro/cmd/micro/highlight"
"github.com/zyedidia/micro/cmd/micro/screen"
@@ -24,13 +23,8 @@ import (
var (
OpenBuffers []*Buffer
detector *chardet.Detector // encoding detector
)
func init() {
detector = chardet.NewTextDetector()
}
// The BufType defines what kind of buffer this is
type BufType struct {
Kind int