summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Beyer <mail@beyermatthias.de>2017-02-23 15:21:53 +0100
committerGitHub <noreply@github.com>2017-02-23 15:21:53 +0100
commit84bcdc68b75188b818a6d384e02818ee2324cfba (patch)
tree58d981669b6e9a967ca52b7595c95fb26b1e6808
parenta0f581b3426eacf492aa2c9dc914abf78f9fd701 (diff)
parent8a942ef4a9a833b11037e54d49fca3f6966dfef6 (diff)
downloadimag-84bcdc68b75188b818a6d384e02818ee2324cfba.zip
imag-84bcdc68b75188b818a6d384e02818ee2324cfba.tar.gz
Merge pull request #905 from matthiasbeyer/libimagnote/note-doesnt-need-to-be-tagable
Remove Tagable implementation for Note
-rw-r--r--libimagnotes/src/note.rs31
1 files changed, 0 insertions, 31 deletions
diff --git a/libimagnotes/src/note.rs b/libimagnotes/src/note.rs
index 2edf1d6..cc50bab 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<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 {
fn from_storeid(&Store, StoreId) -> Result<Note>;
}