From 9c96ff220cc7174585937dea38b4464e89e11c59 Mon Sep 17 00:00:00 2001 From: holger krekel Date: Thu, 19 Dec 2019 14:36:18 +0100 Subject: [PATCH] remove unused include_in_contactlist --- src/contact.rs | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/contact.rs b/src/contact.rs index 901bef7f4..c42707d95 100644 --- a/src/contact.rs +++ b/src/contact.rs @@ -115,15 +115,11 @@ impl Default for Origin { impl Origin { /// Contacts that are known, i. e. they came in via accepted contacts or - /// themselves an accepted contact. + /// themselves an accepted contact. Known contacts are shown in the + /// contact list when one creates a chat and wants to add members etc. pub fn is_known(self) -> bool { self >= Origin::IncomingReplyTo } - - /// Contacts that are shown in the contact list. - pub fn include_in_contactlist(self) -> bool { - self as i32 >= DC_ORIGIN_MIN_CONTACT_LIST - } } #[derive(Debug, PartialEq, Eq, Clone, Copy)]