From b5c78bcee59e50a8f3e44d9e69c84ff15c7b3580 Mon Sep 17 00:00:00 2001 From: projectmoon Date: Sat, 7 Nov 2020 14:39:43 +0000 Subject: [PATCH] Remove userandroom struct from rooms db --- src/db/rooms.rs | 22 ---------------------- 1 file changed, 22 deletions(-) diff --git a/src/db/rooms.rs b/src/db/rooms.rs index 61ccd57..9eb8249 100644 --- a/src/db/rooms.rs +++ b/src/db/rooms.rs @@ -17,28 +17,6 @@ pub struct Rooms { pub(in crate::db) username_roomids: Tree, } -// /// Request soemthing by a username and room ID. -// pub struct UserAndRoom<'a>(pub &'a str, pub &'a str); - -// fn to_vec(value: &UserAndRoom<'_>) -> Vec { -// let mut bytes = vec![]; -// bytes.extend_from_slice(value.0.as_bytes()); -// bytes.push(0xfe); -// bytes.extend_from_slice(value.1.as_bytes()); -// bytes -// } - -// impl From> for Vec { -// fn from(value: UserAndRoom) -> Vec { -// to_vec(&value) -// } -// } - -// impl From<&UserAndRoom<'_>> for Vec { -// fn from(value: &UserAndRoom) -> Vec { -// to_vec(value) -// } -// } enum TxableTree<'a> { Tree(&'a Tree), Tx(&'a TransactionalTree),