[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:
Stephan T. Lavavej
2018-11-14 23:23:55 +00:00
parent 5d11d6e664
commit c6da5c57fe
4 changed files with 0 additions and 20 deletions

View File

@@ -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);

View File

@@ -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);

View File

@@ -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); }
};
{

View File

@@ -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); }
};
{