From f28f86d902a044423215b900d384de3e4cb029d6 Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Sun, 13 Apr 2025 11:12:22 -0700 Subject: [PATCH] remove dead categorytrait --- rust/pspp/src/output/pivot/mod.rs | 25 ------------------------- 1 file changed, 25 deletions(-) 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 -- 2.30.2