Skip to content

Commit 82693f5

Browse files
committed
remove unused
1 parent aa8767c commit 82693f5

File tree

1 file changed

+0
-25
lines changed

1 file changed

+0
-25
lines changed

crates/db_schema/src/impls/person.rs

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -103,31 +103,6 @@ impl Person {
103103
.await
104104
}
105105

106-
/// Lists local community ids for all posts and comments for a given creator.
107-
pub async fn list_local_community_ids(
108-
pool: &mut DbPool<'_>,
109-
for_creator_id: PersonId,
110-
) -> Result<Vec<CommunityId>, Error> {
111-
let conn = &mut get_conn(pool).await?;
112-
comment::table
113-
.inner_join(post::table)
114-
.inner_join(community::table.on(post::community_id.eq(community::id)))
115-
.filter(community::local.eq(true))
116-
.filter(not(community::deleted))
117-
.filter(not(community::removed))
118-
.filter(comment::creator_id.eq(for_creator_id))
119-
.select(community::id)
120-
.union(
121-
post::table
122-
.inner_join(community::table)
123-
.filter(community::local.eq(true))
124-
.filter(post::creator_id.eq(for_creator_id))
125-
.select(community::id),
126-
)
127-
.load::<CommunityId>(conn)
128-
.await
129-
}
130-
131106
pub async fn check_username_taken(pool: &mut DbPool<'_>, username: &str) -> LemmyResult<()> {
132107
use diesel::dsl::{exists, select};
133108
let conn = &mut get_conn(pool).await?;

0 commit comments

Comments
 (0)