From fa4af20764b0596420c1e2a8dd981dc34020e205 Mon Sep 17 00:00:00 2001 From: Ansh Nanda Date: Fri, 12 May 2023 17:22:53 -0700 Subject: [PATCH] remove unncessary code from actorFeedModel --- src/state/models/feeds/actor.ts | 18 +----------------- 1 file changed, 1 insertion(+), 17 deletions(-) diff --git a/src/state/models/feeds/actor.ts b/src/state/models/feeds/actor.ts index 85b55f38..e660d4eb 100644 --- a/src/state/models/feeds/actor.ts +++ b/src/state/models/feeds/actor.ts @@ -11,7 +11,7 @@ import {cleanError} from 'lib/strings/errors' const PAGE_SIZE = 30 -export class BookmarkedFeedsModel { +export class ActorFeedsModel { // state isLoading = false isRefreshing = false @@ -84,22 +84,6 @@ export class BookmarkedFeedsModel { } }) - async bookmark(feed: FeedDefs.GeneratorView) { - try { - await this.rootStore.agent.app.bsky.feed.bookmarkFeed({feed: feed.uri}) - } catch (e: any) { - this.rootStore.log.error('Failed to bookmark feed', e) - } - } - - async unbookmark(feed: FeedDefs.GeneratorView) { - try { - await this.rootStore.agent.app.bsky.feed.unbookmarkFeed({feed: feed.uri}) - } catch (e: any) { - this.rootStore.log.error('Failed to unbookmark feed', e) - } - } - // state transitions // =