From: Ben Pfaff Date: Sun, 13 Apr 2025 18:12:22 +0000 (-0700) Subject: remove dead categorytrait X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f28f86d902a044423215b900d384de3e4cb029d6;p=pspp remove dead categorytrait --- diff --git a/rust/pspp/src/output/pivot/mod.rs b/rust/pspp/src/output/pivot/mod.rs index cd6e28f80c..4f4f49ca00 100644 --- a/rust/pspp/src/output/pivot/mod.rs +++ b/rust/pspp/src/output/pivot/mod.rs @@ -569,31 +569,6 @@ impl From<&str> for Category { } } -trait CategoryTrait { - fn name(&self) -> &Value; -} - -impl CategoryTrait for Group { - fn name(&self) -> &Value { - &self.name - } -} - -impl CategoryTrait for Leaf { - fn name(&self) -> &Value { - &self.name - } -} - -impl CategoryTrait for Category { - fn name(&self) -> &Value { - match self { - Category::Group(group) => group.name(), - Category::Leaf(leaf) => leaf.name(), - } - } -} - /// Styling for a pivot table. /// /// The division between this and the style information in [Table] seems fairly