summaryrefslogtreecommitdiff
blob: 5c541a053a729fbee8672de223d6897548ab65b6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
commit 98f57a6c0e32bc6080a50e1cdd769b9ff78108bc
Author: William Cohen <wcohen@redhat.com>
Date:   Tue Jun 10 09:56:55 2014 -0500

    Remove unused functions causing errors in recent gcc
    
    The Fedora rawhide compiler is now stricter and will treat the
    warnings for unused functions as errors and stop the compile. This patch
    removes two unused functions in the code.
    
    Signed-off-by: William Cohen <wcohen@redhat.com>

diff --git a/libpp/callgraph_container.cpp b/libpp/callgraph_container.cpp
index 1d1c95f..c5bc272 100644
--- a/libpp/callgraph_container.cpp
+++ b/libpp/callgraph_container.cpp
@@ -36,13 +36,6 @@ using namespace std;
 
 namespace {
 
-bool operator==(cg_symbol const & lhs, cg_symbol const & rhs)
-{
-	less_symbol cmp_symb;
-	return !cmp_symb(lhs, rhs) && !cmp_symb(rhs, lhs);
-}
-
-
 // we store {caller,callee} inside a single u64
 odb_key_t caller_to_key(u32 value)
 {
diff --git a/libpp/xml_utils.cpp b/libpp/xml_utils.cpp
index 5f1a3a1..3de41e5 100644
--- a/libpp/xml_utils.cpp
+++ b/libpp/xml_utils.cpp
@@ -101,12 +101,6 @@ bool has_separated_thread_info()
 }
 
 
-string get_cpu_num(size_t pclass)
-{
-	return classes.v[pclass].ptemplate.cpu;
-}
-
-
 };  // anonymous namespace
 
 xml_utils::xml_utils(format_output::xml_formatter * xo,