diff options
author | Lars Wirzenius <liw@liw.fi> | 2022-09-06 08:31:17 +0300 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2022-09-06 08:31:17 +0300 |
commit | ba43ed0c54832ac0c7776767bc4a83aa8517d2de (patch) | |
tree | 79638d9a7b6258409abce78d62f2d0e849cc56aa | |
parent | d695277aef6008de253d8af4946f1db20f4b0c01 (diff) | |
download | riki-ba43ed0c54832ac0c7776767bc4a83aa8517d2de.tar.gz |
chore: drop unused calendars.rs
-rw-r--r-- | src/directive/calendars.rs | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/src/directive/calendars.rs b/src/directive/calendars.rs deleted file mode 100644 index 1c02e16..0000000 --- a/src/directive/calendars.rs +++ /dev/null @@ -1,35 +0,0 @@ -use crate::error::SiteError; -use crate::page::PageMeta; -use crate::site::Site; -use crate::wikitext::ParsedDirective; - -#[derive(Debug, Eq, PartialEq)] -pub struct Calendar {} - -impl Calendar { - pub const REQUIRED: &'static [&'static str] = &[]; - pub const ALLOWED: &'static [&'static str] = &[ - "type", - "pages", - "year", - "month", - "week_start_day", - "months_per_row", - "archivebase", - ]; - pub const ALLOW_ANY_UNNAMED: bool = true; - - pub fn new() -> Self { - Self {} - } - - pub fn process(&self, _site: &Site, _meta: &mut PageMeta) -> Result<String, SiteError> { - Ok("FIXME:graph".into()) - } -} - -impl From<&ParsedDirective> for Calendar { - fn from(_: &ParsedDirective) -> Self { - Calendar::new() - } -} |