mirror of
https://github.com/llvm-mirror/libcxx.git
synced 2025-10-21 23:30:38 +08:00
[libcxx] [test] Fix Clang -Wunused-local-typedef warnings.
C++11's [hash.requirements] never required these typedefs from users. git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@346912 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -41,9 +41,6 @@ struct throw_hasher
|
||||
|
||||
throw_hasher(bool& should_throw) : should_throw_(should_throw) {}
|
||||
|
||||
typedef size_t result_type;
|
||||
typedef T argument_type;
|
||||
|
||||
size_t operator()(const T& p) const
|
||||
{
|
||||
if (should_throw_)
|
||||
@@ -99,8 +96,6 @@ int main()
|
||||
struct hasher
|
||||
{
|
||||
hasher() = default;
|
||||
typedef Counter<int> argument_type;
|
||||
typedef size_t result_type;
|
||||
size_t operator()(const Counter<int>& p) const
|
||||
{
|
||||
return std::hash<Counter<int>>()(p);
|
||||
|
@@ -41,9 +41,6 @@ struct throw_hasher
|
||||
|
||||
throw_hasher(bool& should_throw) : should_throw_(should_throw) {}
|
||||
|
||||
typedef size_t result_type;
|
||||
typedef T argument_type;
|
||||
|
||||
size_t operator()(const T& p) const
|
||||
{
|
||||
if (should_throw_)
|
||||
@@ -99,8 +96,6 @@ int main()
|
||||
struct hasher
|
||||
{
|
||||
hasher() = default;
|
||||
typedef Counter<int> argument_type;
|
||||
typedef size_t result_type;
|
||||
size_t operator()(const Counter<int>& p) const
|
||||
{
|
||||
return std::hash<Counter<int>>()(p);
|
||||
|
@@ -41,9 +41,6 @@ struct throw_hasher
|
||||
|
||||
throw_hasher(bool& should_throw) : should_throw_(should_throw) {}
|
||||
|
||||
typedef size_t result_type;
|
||||
typedef T argument_type;
|
||||
|
||||
size_t operator()(const T& p) const
|
||||
{
|
||||
if (should_throw_)
|
||||
@@ -99,8 +96,6 @@ int main()
|
||||
struct hasher
|
||||
{
|
||||
hasher() = default;
|
||||
typedef Counter<int> argument_type;
|
||||
typedef size_t result_type;
|
||||
size_t operator()(const Counter<int>& p) const { return std::hash<Counter<int>>()(p); }
|
||||
};
|
||||
{
|
||||
|
@@ -41,9 +41,6 @@ struct throw_hasher
|
||||
|
||||
throw_hasher(bool& should_throw) : should_throw_(should_throw) {}
|
||||
|
||||
typedef size_t result_type;
|
||||
typedef T argument_type;
|
||||
|
||||
size_t operator()(const T& p) const
|
||||
{
|
||||
if (should_throw_)
|
||||
@@ -99,8 +96,6 @@ int main()
|
||||
struct hasher
|
||||
{
|
||||
hasher() = default;
|
||||
typedef Counter<int> argument_type;
|
||||
typedef size_t result_type;
|
||||
size_t operator()(const Counter<int>& p) const { return std::hash<Counter<int>>()(p); }
|
||||
};
|
||||
{
|
||||
|
Reference in New Issue
Block a user