Skip to content

Commit 8df797f

Browse files
committed
remove redundant func
1 parent 34b1966 commit 8df797f

1 file changed

Lines changed: 0 additions & 15 deletions

File tree

  • apps/roam/src/components/AdvancedNodeSearchDialog

apps/roam/src/components/AdvancedNodeSearchDialog/utils.ts

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -56,21 +56,6 @@ export const splitWithHighlights = (
5656
}));
5757
};
5858

59-
export const formatMetadataDate = (value: string): string => {
60-
if (!value) return "Unknown";
61-
const numericValue = Number(value);
62-
const date = Number.isFinite(numericValue)
63-
? new Date(numericValue)
64-
: new Date(value);
65-
if (Number.isNaN(date.getTime())) return value;
66-
67-
return date.toLocaleDateString(undefined, {
68-
year: "numeric",
69-
month: "short",
70-
day: "numeric",
71-
});
72-
};
73-
7459
const queryNodesForType = async (
7560
node: DiscourseNode,
7661
): Promise<SearchResult[]> => {

0 commit comments

Comments
 (0)