Skip to content

Commit 562d3a5

Browse files
committed
Leave myself a note on what Cascade will need to be.
1 parent c777cd3 commit 562d3a5

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

lx/src/metadata/cascade.rs

+5-4
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@ use chrono::{DateTime, FixedOffset};
22

33
use super::serial::{self, Book, Qualifiers, Series, Subscribe};
44

5+
// NOTE: this is currently quite naïve and in fact *wrong* as a result: what I
6+
// will actually need is a *tree*, where each point in the tree has two pieces
7+
// of info: the path to that point, and the Metadata for that point. The path
8+
// may want to be just the name of that point in the tree. (I *think* I need
9+
// that, anyway!)
510
pub(crate) struct Cascade {
611
stack: Vec<serial::Metadata>,
712
}
@@ -20,10 +25,6 @@ impl Cascade {
2025
self.find_map(|m| m.layout.clone())
2126
}
2227

23-
pub(crate) fn subtitle(&self) -> Option<String> {
24-
self.find_map(|m| m.subtitle.clone())
25-
}
26-
2728
pub(crate) fn summary(&self) -> Option<String> {
2829
self.find_map(|m| m.summary.clone())
2930
}

0 commit comments

Comments
 (0)