public inbox for libabigail@sourceware.org
 help / color / mirror / Atom feed
* [PATCH] Remove defined but not used functions pointed out by GCC6.
@ 2016-01-01  0:00 Mark Wielaard
  2016-01-01  0:00 ` Dodji Seketeli
  2016-01-01  0:00 ` Ben Woodard
  0 siblings, 2 replies; 4+ messages in thread
From: Mark Wielaard @ 2016-01-01  0:00 UTC (permalink / raw)
  To: libabigail; +Cc: Mark Wielaard

abg-ir.cc:6041:1: warning: ‘abigail::ir::decl_base_sptr abigail::ir::convert_node_to_decl(std::tr1::shared_ptr<_Tp>) [with NodeKind = abigail::ir::decl_base]’ defined but not used [-Wunused-function]
 convert_node_to_decl(decl_base_sptr node)
 ^~~~~~~~~~~~~~~~~~~~

abg-ir.cc:5990:1: warning: ‘const string& abigail::ir::get_node_name(std::tr1::shared_ptr<_Tp>) [with NodeKind = abigail::ir::decl_base]’ defined but not used -Wunused-function]
 get_node_name(decl_base_sptr node)
 ^~~~~~~~~~~~~

	* src/abg-ir.cc (convert_node_to_decl(decl_base_sptr)): Remove
	definition.
	(get_node_name(decl_base_sptr)): Likewise.

Signed-off-by: Mark Wielaard <mjw@redhat.com>
---
 src/abg-ir.cc | 20 --------------------
 1 file changed, 20 deletions(-)

diff --git a/src/abg-ir.cc b/src/abg-ir.cc
index 8a959f7..4b34916 100644
--- a/src/abg-ir.cc
+++ b/src/abg-ir.cc
@@ -5980,16 +5980,6 @@ template<typename NodeKind>
 static const string&
 get_node_name(shared_ptr<NodeKind> node);
 
-/// Gets the name of a decl_base node.
-///
-/// @param node the decl_base node to get the name from.
-///
-/// @return the name of the node.
-template<>
-const string&
-get_node_name(decl_base_sptr node)
-{return node->get_name();}
-
 /// Gets the name of a class_decl node.
 ///
 /// @param node the decl_base node to get the name from.
@@ -6031,16 +6021,6 @@ template<typename NodeKind>
 static decl_base_sptr
 convert_node_to_decl(shared_ptr<NodeKind> node);
 
-/// Get the declaration of a given decl_base node
-///
-/// @param node the decl_base node to consider.
-///
-/// @return the declaration of the node.
-template<>
-decl_base_sptr
-convert_node_to_decl(decl_base_sptr node)
-{return node;}
-
 /// Get the declaration of a given class_decl node
 ///
 /// @param node the class_decl node to consider.
-- 
2.5.0

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2016-01-28  9:22 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-01-01  0:00 [PATCH] Remove defined but not used functions pointed out by GCC6 Mark Wielaard
2016-01-01  0:00 ` Dodji Seketeli
2016-01-01  0:00 ` Ben Woodard
2016-01-01  0:00   ` Dodji Seketeli

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).