From 7ee144351439cab755fefacca0574d98ab628e2e Mon Sep 17 00:00:00 2001 From: Noah Treuhaft Date: Tue, 3 Oct 2023 16:43:59 -0400 Subject: [PATCH] Remove unused lake/data.Object methods (#4792) StringRange formats zed.Values with %s. Range formats them with %d. Neither is very useful. --- lake/data/object.go | 9 --------- 1 file changed, 9 deletions(-) diff --git a/lake/data/object.go b/lake/data/object.go index a430ef3da3..f916deddcf 100644 --- a/lake/data/object.go +++ b/lake/data/object.go @@ -98,10 +98,6 @@ func plural(ordinal int) string { return "s" } -func (o Object) StringRange() string { - return fmt.Sprintf("%s %s %s", o.ID, o.Min, o.Max) -} - func (o *Object) Equal(to *Object) bool { return o.ID == to.ID } @@ -145,11 +141,6 @@ func VectorURI(path *storage.URI, id ksuid.KSUID) *storage.URI { return path.JoinPath(fmt.Sprintf("%s.vng", id)) } -func (o Object) Range() string { - //XXX need to handle any key... will the String method work? - return fmt.Sprintf("[%d-%d]", o.Min, o.Max) -} - // Remove deletes the row object and its seek index. // Any 'not found' errors are ignored. func (o Object) Remove(ctx context.Context, engine storage.Engine, path *storage.URI) error {