mirror of
git://sourceware.org/git/libabigail.git
synced 2024-12-17 15:34:34 +00:00
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 <dodji@redhat.com>
This commit is contained in:
parent
08e760221b
commit
192c8d00ff
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user