From 2ad0f62947ea4e12070f9768f027d285dc476aa2 Mon Sep 17 00:00:00 2001 From: outfoxxed Date: Sun, 14 Jul 2024 16:46:57 -0700 Subject: [PATCH] typegen: remove parameters from function ids Caused more problems making links than it solved. --- typegen/src/resolver.rs | 18 +----------------- 1 file changed, 1 insertion(+), 17 deletions(-) diff --git a/typegen/src/resolver.rs b/typegen/src/resolver.rs index e5d60de..8c2f609 100644 --- a/typegen/src/resolver.rs +++ b/typegen/src/resolver.rs @@ -145,23 +145,7 @@ pub fn resolve_types( outform::Function { ret: qmlparamtype(&func.ret, typespec), name: func.name.clone(), - id: { - let params = func - .params - .iter() - .map(|FnParam { type_, .. }| qmlparamtype(type_, typespec).name); - - let mut id = func.name.clone(); - id.push('('); - for param in params { - id.push_str(¶m); - id.push('_') - } - id.truncate(id.len() - 1); - id.push(')'); - - id - }, + id: func.name.clone(), details: func.details.clone(), params: func .params