From: Ben Pfaff Date: Fri, 2 Jan 2026 03:57:31 +0000 (-0800) Subject: cleanup X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c8abd87fe3c8323c26c0f478f3d55474c446bfbb;p=pspp cleanup --- diff --git a/rust/pspp/src/spv/read/legacy_xml.rs b/rust/pspp/src/spv/read/legacy_xml.rs index 99fd8f6be2..5f742f8c8d 100644 --- a/rust/pspp/src/spv/read/legacy_xml.rs +++ b/rust/pspp/src/spv/read/legacy_xml.rs @@ -14,6 +14,7 @@ // You should have received a copy of the GNU General Public License along with // this program. If not, see . +#![warn(dead_code)] use std::{ cell::{Cell, RefCell}, collections::{BTreeMap, HashMap}, @@ -38,8 +39,8 @@ use crate::{ output::pivot::{ self, Axis2, Axis3, Category, CategoryLocator, Dimension, Group, Leaf, Length, PivotTable, look::{ - self, Area, AreaStyle, BorderStyle, BoxBorder, CellStyle, Color, HeadingRegion, - HorzAlign, Look, RowParity, Stroke, VertAlign, + self, Area, AreaStyle, CellStyle, Color, HeadingRegion, HorzAlign, Look, RowParity, + Stroke, VertAlign, }, value::Value, }, @@ -194,23 +195,33 @@ pub enum LegacyXmlWarning { /// Value expression. value: String, }, + + /// Unsupported applyToConverse. + UnsupportedApplyToConverse, } #[derive(Deserialize, Debug)] #[serde(rename_all = "camelCase")] pub struct Visualization { /// In format `YYYY-MM-DD`. + // XXX parse this #[serde(rename = "@date")] - date: String, + _date: String, + // Locale used for output, e.g. `en-US`. #[serde(rename = "@lang")] lang: String, + /// Localized title of the pivot table. + /// + /// This is repeated in the table's labels, and that form supports + /// footnotes, so we don't read this one. #[serde(rename = "@name")] - name: String, + _name: String, + /// Base style for the pivot table. #[serde(rename = "@style")] - style: Ref