From 9a6bbadfa2238708b24979c008341eb8a63034cf Mon Sep 17 00:00:00 2001 From: James Wilson Date: Tue, 3 Jun 2025 15:09:10 +0100 Subject: [PATCH] Remove now-unnecessary ensure_unique_type_paths invocation --- codegen/src/api/mod.rs | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/codegen/src/api/mod.rs b/codegen/src/api/mod.rs index 7602f9d363..b62185d80a 100644 --- a/codegen/src/api/mod.rs +++ b/codegen/src/api/mod.rs @@ -36,18 +36,7 @@ pub struct RuntimeGenerator { impl RuntimeGenerator { /// Create a new runtime generator from the provided metadata. - /// - /// **Note:** If you have the metadata path, URL or bytes to hand, prefer to use - /// `GenerateRuntimeApi` for generating the runtime API from that. - /// - /// # Panics - /// - /// Panics if the runtime metadata version is not supported. - /// - /// Supported versions: v14 and v15. - pub fn new(mut metadata: Metadata) -> Self { - scale_typegen::utils::ensure_unique_type_paths(metadata.types_mut()) - .expect("Duplicate type paths in metadata; this is bug please file an issue."); + pub fn new(metadata: Metadata) -> Self { RuntimeGenerator { metadata } }