graph: remove redundant type

This commit is contained in:
kortschak 2015-05-06 08:24:45 +09:30
parent da854a9a18
commit 59aca3a32e

View file

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