summaryrefslogtreecommitdiff
path: root/src/index/app.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/index/app.rs')
-rw-r--r--src/index/app.rs8
1 files changed, 0 insertions, 8 deletions
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<Vec<Channel>, 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<Channel, BoxedError> {
let mut tx = self.db.begin().await?;
let channel = tx.channels().by_id(channel).await?;