simplify more
authorBen Pfaff <blp@cs.stanford.edu>
Sat, 27 Dec 2025 01:11:43 +0000 (17:11 -0800)
committerBen Pfaff <blp@cs.stanford.edu>
Sat, 27 Dec 2025 01:11:43 +0000 (17:11 -0800)
rust/pspp/src/spv/read/legacy_xml.rs

index 7a4ecd33d3fe914e178a6f4f39f2e47ffc454655..5508a3c554affae5689055d40395f5f1b367c4ca 100644 (file)
@@ -800,7 +800,6 @@ impl Visualization {
             struct Target<'a> {
                 labeling: Option<&'a Style>,
                 major_ticks: Option<&'a Style>,
-                frame: Option<&'a Style>,
                 format: Option<(&'a SetFormat, Option<TargetType>)>,
             }
             impl<'a> Target<'a> {
@@ -859,8 +858,8 @@ impl Visualization {
                                         Style::apply_to_value(
                                             category.name_mut(),
                                             self.format.map(|(sf, _)| sf),
-                                            self.major_ticks,
-                                            self.frame,
+                                            None,
+                                            None,
                                             &look.areas[Area::Labels(axis)],
                                             footnotes,
                                             has_cell_footnotes,
@@ -922,8 +921,8 @@ impl Visualization {
                                     Style::apply_to_value(
                                         value,
                                         self.format.map(|(sf, _)| sf),
-                                        self.major_ticks,
-                                        self.frame,
+                                        None,
+                                        None,
                                         &look.areas[Area::Data(RowParity::Even)],
                                         footnotes,
                                         has_cell_footnotes,
@@ -948,9 +947,6 @@ impl Visualization {
                             }
                         }
                     }
-                    Set::SetFrameStyle(set_frame_style) => {
-                        target.frame = set_frame_style.style.get(&styles)
-                    }
                     Set::SetFormat(sf) => {
                         let target_type = TargetType::from_id(&sf.target, graph, &major_ticks);
                         if target.format.is_some() {
@@ -958,6 +954,7 @@ impl Visualization {
                         }
                         target.format = Some((sf, target_type))
                     }
+                    Set::SetFrameStyle(_) => (),
                     Set::SetMetaData(_) => (),
                 }
             }