From 401c2ceb71bca9b3d9f6fae2516f29a24ec9a6af Mon Sep 17 00:00:00 2001 From: Bernhard Owen Josephus Date: Tue, 14 May 2024 09:52:09 +0800 Subject: [PATCH] remove unused function --- src/libs/ReportUtils.ts | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/libs/ReportUtils.ts b/src/libs/ReportUtils.ts index 783f477646f9..3ccdeba52286 100644 --- a/src/libs/ReportUtils.ts +++ b/src/libs/ReportUtils.ts @@ -5054,11 +5054,6 @@ function hasViolations(reportID: string, transactionViolations: OnyxCollection TransactionUtils.hasViolation(transaction.transactionID, transactionViolations)); } -function isEmptyChat(report: OnyxEntry) { - const lastVisibleMessage = ReportActionsUtils.getLastVisibleMessage(report?.reportID ?? ''); - return !report?.lastMessageText && !report?.lastMessageTranslationKey && !lastVisibleMessage.lastMessageText && !lastVisibleMessage.lastMessageTranslationKey; -} - /** * Takes several pieces of data from Onyx and evaluates if a report should be shown in the option list (either when searching * for reports or the reports shown in the LHN).