Skip to content

Commit c977a68

Browse files
committed
removed unused fn
1 parent 988da27 commit c977a68

File tree

1 file changed

+0
-20
lines changed

1 file changed

+0
-20
lines changed

noir-projects/noir-protocol-circuits/crates/serde/src/serialization.nr

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -288,26 +288,6 @@ pub comptime fn derive_deserialize(s: TypeDefinition) -> Quoted {
288288
}
289289
}
290290

291-
/// Returns the typed expression of a trait method implementation.
292-
///
293-
/// This helper function is preferred over directly inlining with `$typ::target_method()` in a quote, as direct
294-
/// inlining would result in missing import warnings in the generated code (specifically, warnings that the trait
295-
/// implementation is not in scope).
296-
///
297-
pub(crate) comptime fn get_trait_impl_method(
298-
typ: Type,
299-
target_trait: Quoted,
300-
target_method: Quoted,
301-
) -> TypedExpr {
302-
let trait_constraint = target_trait.as_trait_constraint();
303-
typ
304-
.get_trait_impl(trait_constraint)
305-
.expect(f"Type does not implement trait")
306-
.methods()
307-
.filter(|m| m.name() == target_method)[0]
308-
.as_typed_expr()
309-
}
310-
311291
/// Generates a quoted expression that computes the total serialized length of function parameters.
312292
///
313293
/// # Parameters

0 commit comments

Comments
 (0)