From 66a3dceedaa2b502ba34f96db3588c32c81d3a9f Mon Sep 17 00:00:00 2001 From: "Victoria Terenina (torymur)" Date: Wed, 30 Oct 2024 14:33:50 +0000 Subject: [PATCH] Revert "Trigger diff coverage failure" This reverts commit aae39d90c7baa2d4357a87deb369e7249e6ad67a. --- src/json_schema/helpers.rs | 23 ----------------------- 1 file changed, 23 deletions(-) diff --git a/src/json_schema/helpers.rs b/src/json_schema/helpers.rs index df3270a4..e388089d 100644 --- a/src/json_schema/helpers.rs +++ b/src/json_schema/helpers.rs @@ -38,26 +38,3 @@ pub fn get_num_items_pattern(min_items: Option, max_items: Option) -> } } } - -#[allow(dead_code)] -pub fn some_new_untested_function( - min_items: Option, - max_items: Option, -) -> Option { - let min_items = min_items.unwrap_or(0); - - match max_items { - None => Some(format!("{{{},}}", min_items.saturating_sub(1))), - Some(max_items) => { - if max_items < 1 { - None - } else { - Some(format!( - "{{{},{}}}", - min_items.saturating_sub(1), - max_items.saturating_sub(1) - )) - } - } - } -}