[PATCH proxmox-backup v4 6/8] tools: drop unused from_property_string() helper

Christian Ebner
2026-03-27T12:13:43Z

Since the NodeConfig has been moved and there are no further call
sides it is safe to drop.

Signed-off-by: Christian Ebner <c.ebner@proxmox.com>
Reviewed-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
---
src/tools/config.rs | 11 -----------
1 file changed, 11 deletions(-)

diff --git a/src/tools/config.rs b/src/tools/config.rs
index 2c1078676..413ff3f9e 100644
--- a/src/tools/config.rs
+++ b/src/tools/config.rs
@@ -113,17 +113,6 @@ fn parse_value(value: &str, schema: Option<&'static Schema>) -> Result<Value, Er
}
}

-/// Parse a string as a property string into a deserializable type. This is just a short wrapper
-/// around deserializing the s
-pub fn from_property_string<T>(input: &str, schema: &'static Schema) -> Result<T, Error>
-where
- T: for<'de> Deserialize<'de>,
-{
- Ok(serde_json::from_value(
- schema.parse_property_string(input)?,
- )?)
-}
-
/// Serialize a data structure using a 'key: value' config file format.
pub fn to_bytes<T: Serialize>(value: &T, schema: &'static Schema) -> Result<Vec<u8>, Error> {
value_to_bytes(&serde_json::to_value(value)?, schema)
--
2.47.3