Browse Source

store: remove Root

Blake Mizerany 11 years ago
parent
commit
f4613dd466
2 changed files with 1 additions and 6 deletions
  1. 1 1
      etcdserver2/server_test.go
  2. 0 5
      store/store.go

+ 1 - 1
etcdserver2/server_test.go

@@ -82,7 +82,7 @@ func testServer(t *testing.T, ns int64) {
 	var last interface{}
 	for i, sv := range ss {
 		sv.Stop()
-		g := store.Root(sv.Store)
+		g, _ := sv.Store.Get("/", true, true)
 		if last != nil && !reflect.DeepEqual(last, g) {
 			t.Errorf("server %d: Root = %#v, want %#v", i, g, last)
 		}

+ 0 - 5
store/store.go

@@ -75,11 +75,6 @@ func New() Store {
 	return newStore()
 }
 
-// Root returns the root of a Store and is for testing only.
-func Root(st Store) interface{} {
-	return st.(*store).Root
-}
-
 func newStore() *store {
 	s := new(store)
 	s.CurrentVersion = defaultVersion