common: drop accessors for Value.Val

I don't see why we would need two different accessors for a public field.
This commit is contained in:
Felix Lange
2015-03-20 13:33:11 +01:00
parent dcb9614dfe
commit c161d73d42
4 changed files with 3 additions and 11 deletions

View File

@ -112,7 +112,7 @@ func Encode(object interface{}) []byte {
if object != nil {
switch t := object.(type) {
case *Value:
buff.Write(Encode(t.Raw()))
buff.Write(Encode(t.Val))
case RlpEncodable:
buff.Write(Encode(t.RlpData()))
// Code dup :-/