Skip to content

Commit 8e353a3

Browse files
Remove unneeded fn
1 parent e3d3556 commit 8e353a3

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

src/schema_traverse.rs

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ macro_rules! traverse_key_fn {
2424
macro_rules! traverse {
2525
($($key:expr => $func:expr),*; $dict: expr, $ctx: expr) => {{
2626
$(traverse_key_fn!($key, $func, $dict, $ctx);)*
27-
traverse_key_fn!("serialization", gather_serialization, $dict, $ctx);
27+
traverse_key_fn!("serialization", gather_schema, $dict, $ctx);
2828
gather_meta($dict, $ctx)
2929
}}
3030
}
@@ -56,7 +56,7 @@ fn gather_definition_ref(schema_ref_dict: &Bound<'_, PyDict>, ctx: &mut GatherCt
5656
ctx.recursively_seen_refs.insert(schema_ref_str.to_string());
5757

5858
gather_schema(definition.downcast_exact::<PyDict>()?, ctx)?;
59-
traverse_key_fn!("serialization", gather_serialization, schema_ref_dict, ctx);
59+
traverse_key_fn!("serialization", gather_schema, schema_ref_dict, ctx);
6060
gather_meta(schema_ref_dict, ctx)?;
6161

6262
ctx.recursively_seen_refs.remove(schema_ref_str);
@@ -74,10 +74,6 @@ fn gather_definition_ref(schema_ref_dict: &Bound<'_, PyDict>, ctx: &mut GatherCt
7474
}
7575
}
7676

77-
fn gather_serialization(schema: &Bound<'_, PyDict>, ctx: &mut GatherCtx) -> PyResult<()> {
78-
traverse!("schema" => gather_schema, "return_schema" => gather_schema; schema, ctx)
79-
}
80-
8177
fn gather_meta(schema: &Bound<'_, PyDict>, ctx: &mut GatherCtx) -> PyResult<()> {
8278
if let Some(meta) = get!(schema, "metadata") {
8379
let meta_dict = meta.downcast_exact::<PyDict>()?;

0 commit comments

Comments
 (0)