refactor: remove dead code (#3337)

This commit is contained in:
Hampus authored and GitHub committed 2026-10-09 01:41:26 +02:00
1 parent a19002652b
commit 93d1f8af46
1527 files changed
+21170 -73846

No files matched your search

@@ -130,19 +130,4 @@ export class AttachmentDecayService {
});
}
}
async fetchMetadata(
attachments: Array<Pick<AttachmentDecayPayload, 'attachmentId'>>,
): Promise<Map<string, AttachmentDecayRow>> {
const config = await this.resolveConfig();
if (!config.enabled) return new Map();
if (attachments.length === 0) return new Map();
const attachmentIds = attachments.map((a) => a.attachmentId);
const recordsMap = await this.repo.fetchByIds(attachmentIds);
const result = new Map<string, AttachmentDecayRow>();
for (const [id, row] of recordsMap.entries()) {
result.set(id.toString(), row);
}
return result;
}
}
@@ -46,7 +46,7 @@ export function signAttachmentUrl(url: string, nowSecs?: number): string {
return options === null ? url : signWithSecret(url, options);
}
export function signDataPackageAttachmentUrl(url: string, nowSecs?: number): string {
function signDataPackageAttachmentUrl(url: string, nowSecs?: number): string {
const options = signingOptions(url, nowSecs);
return options === null ? url : signDataPackageWithSecret(url, options);
}