Merge pull request #905 from matthiasbeyer/libimagnote/note-doesnt-need-to-be-tagable

Remove Tagable implementation for Note
This commit is contained in:
Matthias Beyer 2017-02-23 15:21:53 +01:00 committed by GitHub
commit 84bcdc68b7
1 changed files with 0 additions and 31 deletions

View File

@ -31,9 +31,6 @@ use libimagstore::storeid::StoreIdIterator;
use libimagstore::store::FileLockEntry; use libimagstore::store::FileLockEntry;
use libimagstore::store::Store; use libimagstore::store::Store;
use libimagstore::toml_ext::TomlValueExt; 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 module_path::ModuleEntryPath;
use result::Result; use result::Result;
@ -151,34 +148,6 @@ impl<'a> Edit for Note<'a> {
} }
impl<'a> Tagable for Note<'a> {
fn get_tags(&self) -> TagResult<Vec<Tag>> {
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<bool> {
self.entry.has_tag(t)
}
fn has_tags(&self, ts: &[Tag]) -> TagResult<bool> {
self.entry.has_tags(ts)
}
}
trait FromStoreId { trait FromStoreId {
fn from_storeid(&Store, StoreId) -> Result<Note>; fn from_storeid(&Store, StoreId) -> Result<Note>;
} }