From 59aca3a32ebc2273a0b2794c6901f8629db0b958 Mon Sep 17 00:00:00 2001 From: kortschak Date: Wed, 6 May 2015 08:24:45 +0930 Subject: [PATCH] graph: remove redundant type --- graph/primarykey.go | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/graph/primarykey.go b/graph/primarykey.go index 5332a8f..59f0198 100644 --- a/graph/primarykey.go +++ b/graph/primarykey.go @@ -15,12 +15,13 @@ package graph import ( - "code.google.com/p/go-uuid/uuid" "encoding/json" "errors" - "github.com/barakmich/glog" "strconv" "sync" + + "code.google.com/p/go-uuid/uuid" + "github.com/barakmich/glog" ) type primaryKeyType uint8 @@ -116,9 +117,6 @@ func (p PrimaryKey) MarshalJSON() ([]byte, error) { } } -//To avoid recursion in the implmentation of the UnmarshalJSON interface below -type primaryKey PrimaryKey - func (p *PrimaryKey) UnmarshalJSON(bytes []byte) error { if bytes[0] == '"' { switch bytes[1] {