From b86939aae57c47ac8233a5639858fd362c933044 Mon Sep 17 00:00:00 2001 From: William S Fulton Date: Tue, 15 Dec 2009 07:08:53 +0000 Subject: [PATCH] Remove redundant code which is no longer being used since the template specialization improvements were added git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11784 626c5289-ae23-0410-ae9c-e8d60b6d4f22 --- Source/CParse/templ.c | 31 +------------------------------ 1 file changed, 1 insertion(+), 30 deletions(-) diff --git a/Source/CParse/templ.c b/Source/CParse/templ.c index 1f1620094..d78c12b1a 100644 --- a/Source/CParse/templ.c +++ b/Source/CParse/templ.c @@ -494,7 +494,7 @@ static EMatch does_parm_match(SwigType *type, SwigType *partial_parm_type, const static Node *template_locate(String *name, Parm *tparms, Symtab *tscope) { Node *n = 0; - String *tname = 0, *rname = 0; + String *tname = 0; Node *templ; Symtab *primary_scope = 0; List *possiblepartials = 0; @@ -591,34 +591,6 @@ static Node *template_locate(String *name, Parm *tparms, Symtab *tscope) { * only (1) is really supported for partial specializations */ - /* Generate reduced template name (stripped of extraneous pointers, etc.) */ - rname = NewStringf("%s<(", name); - p = parms; - while (p) { - String *t; - t = Getattr(p, "type"); - if (!t) - t = Getattr(p, "value"); - if (t) { - String *tyr = Swig_symbol_typedef_reduce(t, tscope); - String *ty = SwigType_strip_qualifiers(tyr); - String *tb = SwigType_base(ty); - String *td = SwigType_default(ty); - Replaceid(td, "enum SWIGTYPE", tb); - Replaceid(td, "SWIGTYPE", tb); - Append(rname, td); - Delete(tb); - Delete(td); - Delete(ty); - Delete(tyr); - } - p = nextSibling(p); - if (p) { - Append(rname, ","); - } - } - Append(rname, ")>"); - /* Rank each template parameter against the desired template parameters then build a matrix of best matches */ possiblepartials = NewList(); { @@ -819,7 +791,6 @@ static Node *template_locate(String *name, Parm *tparms, Symtab *tscope) { } success: Delete(tname); - Delete(rname); Delete(possiblepartials); if ((template_debug) && (n)) { /*