Skip to content

Commit

Permalink
Merge pull request #48037 from Expensify/cmartins-rmDeadCode
Browse files Browse the repository at this point in the history
Remove dead code
  • Loading branch information
srikarparsi authored Aug 28, 2024
2 parents 2a04fe1 + 2f68502 commit ff2fa3b
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/libs/SearchUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -245,11 +245,6 @@ function getSortedSections(status: SearchStatus, data: ListItemDataType<typeof s
return status === CONST.SEARCH.STATUS.EXPENSE.ALL ? getSortedTransactionData(data as TransactionListItemType[], sortBy, sortOrder) : getSortedReportData(data as ReportListItemType[]);
}

function getQueryHash(query: string, policyID?: string, sortBy?: string, sortOrder?: string): number {
const textToHash = [query, policyID, sortOrder, sortBy].filter(Boolean).join('_');
return UserUtils.hashText(textToHash, 2 ** 32);
}

function getSortedTransactionData(data: TransactionListItemType[], sortBy?: SearchColumnType, sortOrder?: SortOrder) {
if (!sortBy || !sortOrder) {
return data;
Expand Down Expand Up @@ -582,7 +577,6 @@ export {
getFilters,
getPolicyIDFromSearchQuery,
getListItem,
getQueryHash,
getSearchHeaderTitle,
getSections,
getShouldShowMerchant,
Expand Down

0 comments on commit ff2fa3b

Please sign in to comment.