Commit f9afcdca authored by Damian Gryski's avatar Damian Gryski

deadcode--

parent 28ab321f
...@@ -145,24 +145,6 @@ func (e *Encoder) encodeInt(k reflect.Kind, i int64) { ...@@ -145,24 +145,6 @@ func (e *Encoder) encodeInt(k reflect.Kind, i int64) {
} }
} }
func (e *Encoder) encodeScalar(rv reflect.Value) {
switch rv.Kind() {
case reflect.Array, reflect.Slice:
if rv.Type().Elem().Kind() == reflect.Uint8 {
e.encodeBytes(rv.Bytes())
} else {
e.encodeArray(rv)
}
case reflect.Map:
e.encodeMap(rv)
case reflect.Interface:
e.encodeScalar(rv.Elem())
default:
e.encode(rv)
}
}
func (e *Encoder) encodeMap(m reflect.Value) { func (e *Encoder) encodeMap(m reflect.Value) {
keys := m.MapKeys() keys := m.MapKeys()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment