Skip to content

Commit

Permalink
Remove unneeded typeindex header
Browse files Browse the repository at this point in the history
  • Loading branch information
codemercenary committed Mar 1, 2016
1 parent f80eaf7 commit ed36d8a
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
1 change: 0 additions & 1 deletion src/autowiring/Parallel.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
#include "DispatchQueue.h"
#include <iterator>
#include <unordered_map>
#include <typeindex>
#include <deque>

class CoreContext;
Expand Down
5 changes: 3 additions & 2 deletions src/autowiring/demangle.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
#include "stdafx.h"
#include "demangle.h"
#include "AnySharedPointer.h"
#include <typeindex>

#if __GNUG__ // Mac and linux
#include <cxxabi.h>
Expand All @@ -16,7 +17,7 @@ static std::string demangle_name(const char* name) {

if(status != 0)
return std::string();

return std::string(res.get());
}

Expand All @@ -36,7 +37,7 @@ static std::string demangle_name(const char* name) {
name += 6;
continue;
}

if (strncmp(name, "struct ", 7) == 0) {
name += 7;
continue;
Expand Down
5 changes: 4 additions & 1 deletion src/autowiring/demangle.h
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
// Copyright (C) 2012-2015 Leap Motion, Inc. All rights reserved.
#pragma once
#include <string>
#include <typeindex>

struct AnySharedPointer;
struct auto_id;

namespace std {
class type_index;
}

//
// Demangle type names on mac and linux.
// Just returns type_info.name() on windows
Expand Down
1 change: 0 additions & 1 deletion src/autowiring/stdafx.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
#include <thread>
#include <tuple>
#include <type_traits>
#include <typeindex>
#include <unordered_map>
#include <vector>
#endif
Expand Down

0 comments on commit ed36d8a

Please sign in to comment.