Skip to content

Commit

Permalink
Remove commented out code
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewSisley committed Feb 28, 2022
1 parent a54b34f commit e4bc8ff
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 9 deletions.
1 change: 0 additions & 1 deletion core/crdt/composite.go
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,6 @@ func (c CompositeDAG) DeltaDecode(node ipld.Node) (core.Delta, error) {
return nil, errors.New("Failed to cast ipld.Node to ProtoNode")
}
data := pbNode.Data()
// fmt.Println(data)
h := &codec.CborHandle{}
dec := codec.NewDecoderBytes(data, h)
err := dec.Decode(delta)
Expand Down
1 change: 0 additions & 1 deletion core/crdt/lwwreg.go
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,6 @@ func (reg LWWRegister) DeltaDecode(node ipld.Node) (core.Delta, error) {
return nil, errors.New("Failed to cast ipld.Node to ProtoNode")
}
data := pbNode.Data()
// fmt.Println(data)
h := &codec.CborHandle{}
dec := codec.NewDecoderBytes(data, h)
err := dec.Decode(delta)
Expand Down
8 changes: 2 additions & 6 deletions core/crdt/lwwreg_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -157,8 +157,6 @@ func TestLWWRegisterDeltaMarshal(t *testing.T) {
return
}

// fmt.Println(bytes)

h := &codec.CborHandle{}
dec := codec.NewDecoderBytes(bytes, h)
unmarshaledDelta := &LWWRegDelta{}
Expand Down Expand Up @@ -187,8 +185,7 @@ func makeNode(delta core.Delta, heads []cid.Cid) (ipld.Node, error) {
return nil, err
}
}
// data = []byte("test")
// fmt.Println("PRE", data)

nd := dag.NodeWithData(data)
// The cid builder defaults to v0, we want to be using v1 CIDs
nd.SetCidBuilder(
Expand All @@ -204,8 +201,7 @@ func makeNode(delta core.Delta, heads []cid.Cid) (ipld.Node, error) {
return nil, err
}
}
// data2 := nd.Data()
// fmt.Println("POST", data2)

return nd, nil
}

Expand Down
1 change: 0 additions & 1 deletion core/key.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@ func (k Key) PrefixEnd() Key {
// An error is returned if it can't correct convert the
// field to a uint32.
func (k Key) FieldID() (uint32, error) {
// fmt.Println(k.String())
fieldIDStr := k.Type()
fieldID, err := strconv.Atoi(fieldIDStr)
if err != nil {
Expand Down

0 comments on commit e4bc8ff

Please sign in to comment.