diff --git a/mobile/store.go b/mobile/store.go index 8da22f45..6d07de75 100644 --- a/mobile/store.go +++ b/mobile/store.go @@ -116,31 +116,3 @@ func (c *Client) listRecentCidsAsString(ctx context.Context) ([]string, error) { } return links, nil } - -func (c *Client) listRecentCids(ctx context.Context) ([]ipld.Link, error) { - q := query.Query{ - KeysOnly: true, - Prefix: recentCidKeyPrefix.String(), - } - results, err := c.ds.Query(ctx, q) - if err != nil { - return nil, err - } - defer results.Close() - var links []ipld.Link - for r := range results.Next() { - if ctx.Err() != nil { - return nil, ctx.Err() - } - if r.Error != nil { - return nil, r.Error - } - key := datastore.RawKey(r.Key) - c, err := cid.Decode(key.BaseNamespace()) - if err != nil { - return nil, err - } - links = append(links, cidlink.Link{Cid: c}) - } - return links, nil -}