From 8738cf083caaf9d8ecb1918e14712f7b09f490a5 Mon Sep 17 00:00:00 2001 From: Owen Jacobson Date: Sun, 15 Sep 2024 22:25:48 -0400 Subject: Move channel list into the `app.channels()` namespace. This is groundwork for a JSON-based API, after a conversation with Kit. --- src/index/app.rs | 8 -------- 1 file changed, 8 deletions(-) (limited to 'src/index/app.rs') diff --git a/src/index/app.rs b/src/index/app.rs index b315b45..fabf35c 100644 --- a/src/index/app.rs +++ b/src/index/app.rs @@ -14,14 +14,6 @@ impl<'a> Index<'a> { Self { db } } - pub async fn for_authenticated(&self) -> Result, BoxedError> { - let mut tx = self.db.begin().await?; - let channels = tx.channels().all().await?; - tx.commit().await?; - - Ok(channels) - } - pub async fn channel(&self, channel: ChannelId) -> Result { let mut tx = self.db.begin().await?; let channel = tx.channels().by_id(channel).await?; -- cgit v1.2.3