Remove unused functions from abg-ir.cc
authorDodji Seketeli <dodji@redhat.com>
Mon, 16 Jan 2017 07:57:55 +0000 (08:57 +0100)
committerDodji Seketeli <dodji@redhat.com>
Mon, 16 Jan 2017 07:57:55 +0000 (08:57 +0100)
* src/abg-ir.cc (convert_node_to_decl): Remove specializations for
class_decl_sptr, type_base_sptr and var_decl_sptr.

Signed-off-by: Dodji Seketeli <dodji@redhat.com>
src/abg-ir.cc

index 6f8fa7cba2e1c8e2e909eda29fe177dad44fc1f3..1761bf26ecb43480fc72440dfc67159b95fb3005 100644 (file)
@@ -6892,36 +6892,6 @@ template<typename NodeKind>
 static decl_base_sptr
 convert_node_to_decl(shared_ptr<NodeKind> node);
 
-/// Get the declaration of a given class_decl node
-///
-/// @param node the class_decl node to consider.
-///
-/// @return the declaration of the node.
-template<>
-decl_base_sptr
-convert_node_to_decl(class_decl_sptr node)
-{return node;}
-
-/// Get the declaration of a type_base node.
-///
-/// @param node the type node to consider.
-///
-/// @return the declaration of the type_base.
-template<>
-decl_base_sptr
-convert_node_to_decl(type_base_sptr node)
-{return get_type_declaration(node);}
-
-/// Get the declaration of a var_decl.
-///
-/// @param node the var_decl to consider.
-///
-/// @return the declaration of the var_decl.
-template<>
-decl_base_sptr
-convert_node_to_decl(var_decl_sptr node)
-{return node;}
-
 /// Lookup a node in a given scope.
 ///
 /// @tparam the type of the node to lookup.