@@ -26,17 +26,6 @@ func RemoveCollection(w storage.Writer, collID flow.Identifier) error {
26
26
return RemoveByKey (w , MakePrefix (codeCollection , collID ))
27
27
}
28
28
29
- // IndexCollectionPayload will overwrite any existing index, which is acceptable
30
- // because the blockID is derived from txIDs within the payload, ensuring its uniqueness.
31
- func IndexCollectionPayload (w storage.Writer , blockID flow.Identifier , txIDs []flow.Identifier ) error {
32
- return UpsertByKey (w , MakePrefix (codeIndexCollection , blockID ), txIDs )
33
- }
34
-
35
- // LookupCollection looks up the collection for a given cluster payload.
36
- func LookupCollectionPayload (r storage.Reader , blockID flow.Identifier , txIDs * []flow.Identifier ) error {
37
- return RetrieveByKey (r , MakePrefix (codeIndexCollection , blockID ), txIDs )
38
- }
39
-
40
29
// UnsafeIndexCollectionByTransaction inserts a collection id keyed by a transaction id
41
30
// Unsafe because a transaction can belong to multiple collections, indexing collection by a transaction
42
31
// will overwrite the previous collection id that was indexed by the same transaction id
@@ -54,12 +43,6 @@ func LookupCollectionByTransaction(r storage.Reader, txID flow.Identifier, colle
54
43
return RetrieveByKey (r , MakePrefix (codeIndexCollectionByTransaction , txID ), collectionID )
55
44
}
56
45
57
- // RemoveCollectionPayloadIndices removes a collection id indexed by a block id
58
- // any error returned are exceptions
59
- func RemoveCollectionPayloadIndices (w storage.Writer , blockID flow.Identifier ) error {
60
- return RemoveByKey (w , MakePrefix (codeIndexCollection , blockID ))
61
- }
62
-
63
46
// RemoveCollectionByTransactionIndex removes a collection id indexed by a transaction id,
64
47
// created by [UnsafeIndexCollectionByTransaction].
65
48
// Any error returned is an exception.
0 commit comments