(nids []types.StateBlockNID)
| 1283 | func (s stateBlockNIDSorter) Swap(i, j int) { s[i], s[j] = s[j], s[i] } |
| 1284 | |
| 1285 | func uniqueStateBlockNIDs(nids []types.StateBlockNID) []types.StateBlockNID { |
| 1286 | return nids[:util.SortAndUnique(stateBlockNIDSorter(nids))] |
| 1287 | } |
| 1288 | |
| 1289 | // Map from event type, state key tuple to numeric event ID. |
| 1290 | // Implemented using binary search on a sorted array. |
no test coverage detected