Skip to content

Commit

Permalink
Remove unused member
Browse files Browse the repository at this point in the history
  • Loading branch information
emilk committed Mar 25, 2024
1 parent c8b171e commit 3796e59
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions crates/re_types_builder/src/docs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,16 +30,14 @@ pub struct Docs {
///
/// See also [`Docs::doc`].
tagged_docs: BTreeMap<String, Vec<String>>,

/// Contents of all the files included using `\include:<path>`.
included_files: BTreeMap<Utf8PathBuf, String>,
}

impl Docs {
pub fn from_raw_docs(
filepath: &Utf8Path,
docs: Option<flatbuffers::Vector<'_, flatbuffers::ForwardsUOffset<&'_ str>>>,
) -> Self {
// Contents of all the files included using `\include:<path>`.
let mut included_files = BTreeMap::default();

let include_file = |included_files: &mut BTreeMap<_, _>, raw_path: &str| {
Expand Down Expand Up @@ -140,11 +138,7 @@ impl Docs {
tagged_docs
};

Self {
doc,
tagged_docs,
included_files,
}
Self { doc, tagged_docs }
}

/// Get all doc lines that start with the given tag.
Expand Down

0 comments on commit 3796e59

Please sign in to comment.