From 27f3d76a2b14e2eae8c608e2e7cf54a071a08f4d Mon Sep 17 00:00:00 2001 From: dakkar Date: Fri, 30 Aug 2024 13:38:44 +0100 Subject: [PATCH] remove unused function not present upstream, not mentioned anywhere --- packages/backend/src/misc/prelude/array.ts | 4 ---- 1 file changed, 4 deletions(-) diff --git a/packages/backend/src/misc/prelude/array.ts b/packages/backend/src/misc/prelude/array.ts index f6c43b4ef4..f741a0c913 100644 --- a/packages/backend/src/misc/prelude/array.ts +++ b/packages/backend/src/misc/prelude/array.ts @@ -104,7 +104,3 @@ export function toArray(x: T | T[] | undefined): T[] { export function toSingle(x: T | T[] | undefined): T | undefined { return Array.isArray(x) ? x[0] : x; } - -export function toSingleLast(x: T | T[] | undefined): T | undefined { - return Array.isArray(x) ? x.at(-1) : x; -}