diff --git a/database.go b/database.go index 3619de1..d4838ab 100644 --- a/database.go +++ b/database.go @@ -94,7 +94,7 @@ func (this *database) buildVersions(base string, names []string) ([]*version, er return nil, err } - ver, err := newVersion(path.Join(base, name), timestamp, this, parent, nil) + ver, err := newVersion(path.Join(base, name), timestamp, this, parent) if err != nil { return nil, err } diff --git a/version.go b/version.go index eebbad2..3786fb6 100644 --- a/version.go +++ b/version.go @@ -46,7 +46,7 @@ type InodeAllocator interface { AllocInode() uint64 } -func newVersion(base string, timestamp time.Time, allocator InodeAllocator, parent, terminus *version) (*version, error) { +func newVersion(base string, timestamp time.Time, allocator InodeAllocator, parent *version) (*version, error) { meta, err := newVersionMetadata(filepath.Join(base, "meta.json")) if err != nil { return nil, err @@ -55,7 +55,6 @@ func newVersion(base string, timestamp time.Time, allocator InodeAllocator, pare ver := &version{ base: base, parent: parent, - terminus: terminus, timestamp: timestamp, meta: meta, inodeAloc: allocator}