last_modified is no longer required

This commit is contained in:
daladim 2021-03-23 00:13:03 +01:00
parent 5c3c5c8090
commit cbb4378581
6 changed files with 20 additions and 98 deletions

View file

@ -2,7 +2,6 @@ use std::fmt::{Display, Formatter};
use std::str::FromStr;
use serde::{Deserialize, Serialize};
use chrono::{Utc, DateTime};
use url::Url;
use crate::resource::Resource;
@ -30,13 +29,6 @@ impl Item {
}
}
pub fn last_modified(&self) -> DateTime<Utc> {
match self {
Item::Event(e) => e.last_modified(),
Item::Task(t) => t.last_modified(),
}
}
pub fn sync_status(&self) -> &SyncStatus {
match self {
Item::Event(e) => e.sync_status(),