Skip to content

Commit

Permalink
Remove unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
mattladany committed May 4, 2024
1 parent 03e99e3 commit bdb0f3b
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 11 deletions.
4 changes: 0 additions & 4 deletions g_counter_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,6 @@ package crdt

import "testing"

func initNodes() []string {
return []string{"srv1", "srv2", "srv3", "srv4"}
}

func TestGCounterInitialization(t *testing.T) {
counter := NewGCounter("counter1", "srv1")
if counter.Value() != 0 {
Expand Down
7 changes: 0 additions & 7 deletions mv_register.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,6 @@ type MVRegister[T any] struct {
registers map[string]*LWWRegister[T]
}

// registerValue represents the register of a particular node within the
// cluster.
type registerValue[T any] struct {
value T
timestamp int64
}

// NewMVRegister constructs a MVRegister with a value for this node set to initialValue.
// It is assumed the name of this specific MVRegister uniquely identifies this
// register throughout the cluster.
Expand Down

0 comments on commit bdb0f3b

Please sign in to comment.