Remove unused getExpiresAt function

This commit is contained in:
Evan Hahn
2021-07-30 14:54:34 -05:00
committed by GitHub
parent 68eac613d7
commit d0bf9f929b

View File

@@ -30,15 +30,3 @@ export function markRead(
return nextMessageAttributes; return nextMessageAttributes;
} }
export function getExpiresAt(
messageAttrs: Pick<
MessageAttributesType,
'expireTimer' | 'expirationStartTimestamp'
>
): number | undefined {
const { expireTimer, expirationStartTimestamp } = messageAttrs;
return expirationStartTimestamp && expireTimer
? expirationStartTimestamp + expireTimer * 1000
: undefined;
}