]> Untitled Git - lemmy.git/blobdiff - lemmy_db/src/source/post.rs
Merge remote-tracking branch 'origin/split-db-workspace' into move_views_to_diesel_split
[lemmy.git] / lemmy_db / src / source / post.rs
index 81f09e722de2098b1c1b3442f81ed7b30a4f1200..c681adbe47bf1282b7c5e188c63d0852121bc258 100644 (file)
@@ -57,12 +57,6 @@ pub trait Post_ {
 }
 
 impl Post_ for Post {
-  // TODO: this is a duplicate?
-  //fn read(conn: &PgConnection, post_id: i32) -> Result<Self, Error> {
-  //  use lemmy_db_schema::schema::post::dsl::*;
-  //  post.filter(id.eq(post_id)).first::<Self>(conn)
-  //}
-
   fn list_for_community(conn: &PgConnection, the_community_id: i32) -> Result<Vec<Self>, Error> {
     use lemmy_db_schema::schema::post::dsl::*;
     post