store: remove Root

release-2.0
Blake Mizerany 2014-08-29 16:43:02 -07:00 committed by Yicheng Qin
parent ba7d174349
commit f4613dd466
2 changed files with 1 additions and 6 deletions

View File

@ -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)
}

View File

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