remove dead categorytrait
authorBen Pfaff <blp@cs.stanford.edu>
Sun, 13 Apr 2025 18:12:22 +0000 (11:12 -0700)
committerBen Pfaff <blp@cs.stanford.edu>
Sun, 13 Apr 2025 18:12:22 +0000 (11:12 -0700)
rust/pspp/src/output/pivot/mod.rs

index cd6e28f80c4fa8df3d8b8ace7206a0822620ad9d..4f4f49ca006a517ec51fa6713dfaf8551ec0f8b8 100644 (file)
@@ -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