From: Dodji Seketeli Date: Mon, 16 Jan 2017 07:57:55 +0000 (+0100) Subject: Remove unused functions from abg-ir.cc X-Git-Tag: upstream/1.0~159 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=192c8d00ff808cafc4f33e8f91a0adf648711d0c;p=platform%2Fupstream%2Flibabigail.git Remove unused functions from abg-ir.cc * 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 --- diff --git a/src/abg-ir.cc b/src/abg-ir.cc index 6f8fa7cb..1761bf26 100644 --- a/src/abg-ir.cc +++ b/src/abg-ir.cc @@ -6892,36 +6892,6 @@ template static decl_base_sptr convert_node_to_decl(shared_ptr 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.