From 8a942ef4a9a833b11037e54d49fca3f6966dfef6 Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Thu, 23 Feb 2017 12:36:55 +0100 Subject: [PATCH] Remove Tagable implementation for Note --- libimagnotes/src/note.rs | 31 ------------------------------- 1 file changed, 31 deletions(-) diff --git a/libimagnotes/src/note.rs b/libimagnotes/src/note.rs index 2edf1d60..cc50bab8 100644 --- a/libimagnotes/src/note.rs +++ b/libimagnotes/src/note.rs @@ -31,9 +31,6 @@ use libimagstore::storeid::StoreIdIterator; use libimagstore::store::FileLockEntry; use libimagstore::store::Store; use libimagstore::toml_ext::TomlValueExt; -use libimagentrytag::tag::{Tag, TagSlice}; -use libimagentrytag::tagable::Tagable; -use libimagentrytag::result::Result as TagResult; use module_path::ModuleEntryPath; use result::Result; @@ -151,34 +148,6 @@ impl<'a> Edit for Note<'a> { } -impl<'a> Tagable for Note<'a> { - - fn get_tags(&self) -> TagResult> { - self.entry.get_tags() - } - - fn set_tags(&mut self, ts: &[Tag]) -> TagResult<()> { - self.entry.set_tags(ts) - } - - fn add_tag(&mut self, t: Tag) -> TagResult<()> { - self.entry.add_tag(t) - } - - fn remove_tag(&mut self, t: Tag) -> TagResult<()> { - self.entry.remove_tag(t) - } - - fn has_tag(&self, t: TagSlice) -> TagResult { - self.entry.has_tag(t) - } - - fn has_tags(&self, ts: &[Tag]) -> TagResult { - self.entry.has_tags(ts) - } - -} - trait FromStoreId { fn from_storeid(&Store, StoreId) -> Result; }