From a71ea99f5ea28ab4958c39d749bd487da9dd1fec Mon Sep 17 00:00:00 2001 From: Pietro Albini Date: Sat, 16 Feb 2019 17:07:28 +0100 Subject: remove the unused team.children property --- README.md | 4 ---- src/schema.rs | 10 ---------- 2 files changed, 14 deletions(-) diff --git a/README.md b/README.md index 75fac8d..1f28139 100644 --- a/README.md +++ b/README.md @@ -75,10 +75,6 @@ directory. The structure of the file is this: ```toml name = "overlords" # Name of the team, used for GitHub (required) subteam-of = "gods" # Name of the parent team of this team (optional) -# Include all the members of the listed teams as members of this team (optional) -inherit = [ - "kings", -] [people] # Leads of the team, can be more than one and must be members of the team. diff --git a/src/schema.rs b/src/schema.rs index d6604f7..f53fd19 100644 --- a/src/schema.rs +++ b/src/schema.rs @@ -99,8 +99,6 @@ pub(crate) struct Team { #[serde(default = "default_false")] wg: bool, subteam_of: Option, - #[serde(default)] - children: Vec, people: TeamPeople, #[serde(default)] permissions: Permissions, @@ -132,14 +130,6 @@ impl Team { pub(crate) fn members<'a>(&'a self, data: &'a Data) -> Result, Error> { let mut members: HashSet<_> = self.people.members.iter().map(|s| s.as_str()).collect(); - for subteam in &self.children { - let submembers = data - .team(&subteam) - .ok_or_else(|| err_msg(format!("missing team {}", subteam)))?; - for person in submembers.members(data)? { - members.insert(person); - } - } if self.people.include_team_leads || self.people.include_wg_leads { for team in data.teams() { let include_wg = team.is_wg() && self.people.include_wg_leads; -- cgit v1.2.3