From 13d4e16a14c0bd9f36d3ca2ab651deeb95af3bd5 Mon Sep 17 00:00:00 2001 From: Cesar Augusto Date: Fri, 25 Oct 2024 01:19:02 -0300 Subject: [PATCH] Removed some deadcode --- src/extensions/NostrExtension.ts | 2 -- src/uploaders/blossom.ts | 1 - 2 files changed, 3 deletions(-) diff --git a/src/extensions/NostrExtension.ts b/src/extensions/NostrExtension.ts index b6817a2..befec47 100644 --- a/src/extensions/NostrExtension.ts +++ b/src/extensions/NostrExtension.ts @@ -63,7 +63,6 @@ export interface NostrOptions { export interface NostrStorage { imeta: IMetaTags | null - pending: boolean setImeta: (imeta: IMetaTags) => void getTags: () => TagAttributes[] getNprofiles: () => NProfileAttributes[] @@ -124,7 +123,6 @@ export const NostrExtension = Extension.create({ addStorage() { return { imeta: null, - pending: false, setImeta: () => {}, getTags: () => [], getNaddress: () => [], diff --git a/src/uploaders/blossom.ts b/src/uploaders/blossom.ts index 8541fa8..727c320 100644 --- a/src/uploaders/blossom.ts +++ b/src/uploaders/blossom.ts @@ -39,7 +39,6 @@ export async function uploadBlossom(options: BlossomOptions) { ['expiration', (now + (options.expiration || 60000)).toString()], ], }) - await new Promise((r) => setTimeout(() => r(), 1000)) const data = JSON.stringify(event) const base64 = btoa(data) const authorization = `Nostr ${base64}`