Skip to content

Commit 796f3da

Browse files
author
Matthew Barnes
committed
database: Remove unused ListAllOperationDocs method
1 parent 4cbac5e commit 796f3da

File tree

2 files changed

+0
-20
lines changed

2 files changed

+0
-20
lines changed

internal/database/database.go

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,6 @@ type DBClient interface {
8181
UpdateOperationDoc(ctx context.Context, operationID string, callback func(*OperationDocument) bool) (bool, error)
8282
DeleteOperationDoc(ctx context.Context, operationID string) error
8383
ListOperationDocs(subscriptionID string) DBClientIterator[OperationDocument]
84-
ListAllOperationDocs() DBClientIterator[OperationDocument]
8584

8685
// GetSubscriptionDoc retrieves a SubscriptionDocument from the database given the subscriptionID.
8786
// ErrNotFound is returned if an associated SubscriptionDocument cannot be found.
@@ -439,11 +438,6 @@ func (d *CosmosDBClient) ListOperationDocs(subscriptionID string) DBClientIterat
439438
return newQueryItemsIterator[OperationDocument](pager)
440439
}
441440

442-
func (d *CosmosDBClient) ListAllOperationDocs() DBClientIterator[OperationDocument] {
443-
pk := azcosmos.NewPartitionKeyString(operationsPartitionKey)
444-
return newQueryItemsIterator[OperationDocument](d.operations.NewQueryItemsPager("SELECT * FROM c", pk, nil))
445-
}
446-
447441
// GetSubscriptionDoc retreives a subscription document from async DB using the subscription ID
448442
func (d *CosmosDBClient) GetSubscriptionDoc(ctx context.Context, subscriptionID string) (*SubscriptionDocument, error) {
449443
// Make sure lookup keys are lowercase.

internal/mocks/dbclient.go

Lines changed: 0 additions & 14 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)