Skip to content

Commit a5d68d8

Browse files
committed
chore: Remove unused code
1 parent 438bc7f commit a5d68d8

File tree

2 files changed

+0
-7
lines changed

2 files changed

+0
-7
lines changed

kube-core/src/schema/mod.rs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -258,11 +258,6 @@ enum SingleOrVec<T> {
258258
Vec(Vec<T>),
259259
}
260260

261-
#[cfg(test)]
262-
fn schemars_schema_to_kube_schema(incoming: schemars::Schema) -> Result<Schema, serde_json::Error> {
263-
serde_json::from_value(incoming.to_value())
264-
}
265-
266261
impl Transform for StructuralSchemaRewriter {
267262
fn transform(&mut self, transform_schema: &mut schemars::Schema) {
268263
// Apply this (self) transform to all subschemas

kube-core/src/schema/transform_properties.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -193,8 +193,6 @@ fn tagged_enum_with_stuct_and_tuple_variants_before_one_of_hoisting() {
193193
#[cfg(test)]
194194
#[test]
195195
fn tagged_enum_with_stuct_and_tuple_variants_after_one_of_hoisting() {
196-
use serde_json::json;
197-
198196
let original_schema_object_value = serde_json::json!({
199197
"description": "A complex tagged enum with unit and struct variants",
200198
"oneOf": [

0 commit comments

Comments
 (0)