aboutsummaryrefslogtreecommitdiff
path: root/libitm/libitm_i.h
diff options
context:
space:
mode:
authorTorvald Riegel <triegel@redhat.com>2016-01-19 19:49:14 +0000
committerTorvald Riegel <torvald@gcc.gnu.org>2016-01-19 19:49:14 +0000
commitf57fc9606845a446659826a512aa78c70fb4c842 (patch)
treeb8e4a672877d16db06c57a1337c606d36e7ee240 /libitm/libitm_i.h
parent33f488425964a50f8bcd847980c02beea8b25956 (diff)
downloadgcc-f57fc9606845a446659826a512aa78c70fb4c842.zip
gcc-f57fc9606845a446659826a512aa78c70fb4c842.tar.gz
gcc-f57fc9606845a446659826a512aa78c70fb4c842.tar.bz2
libitm: Remove dead code.
* local_type_traits: Remove file. * libitm_i.h: Don't include it anymore. (sized_integral): Remove. From-SVN: r232581
Diffstat (limited to 'libitm/libitm_i.h')
-rw-r--r--libitm/libitm_i.h8
1 files changed, 0 insertions, 8 deletions
diff --git a/libitm/libitm_i.h b/libitm/libitm_i.h
index 751b4ab..ae88ff0 100644
--- a/libitm/libitm_i.h
+++ b/libitm/libitm_i.h
@@ -36,7 +36,6 @@
#include <stdlib.h>
#include <string.h>
#include <unwind.h>
-#include "local_type_traits"
#include "local_atomic"
/* Don't require libgcc_s.so for exceptions. */
@@ -49,13 +48,6 @@ namespace GTM HIDDEN {
using namespace std;
-// A helper template for accessing an unsigned integral of SIZE bytes.
-template<size_t SIZE> struct sized_integral { };
-template<> struct sized_integral<1> { typedef uint8_t type; };
-template<> struct sized_integral<2> { typedef uint16_t type; };
-template<> struct sized_integral<4> { typedef uint32_t type; };
-template<> struct sized_integral<8> { typedef uint64_t type; };
-
typedef unsigned int gtm_word __attribute__((mode (word)));
// These values are given to GTM_restart_transaction and indicate the