From c570c7c6fb1abc780510efd5eee6c3a9131a54e4 Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Tue, 23 Jul 2013 11:13:57 +1000 Subject: Only use map for character representations instead of unordered_map where possible. unordered_map caused too many porting problems. --- src/Editor.cxx | 3 --- src/PositionCache.cxx | 3 --- src/PositionCache.h | 6 +----- src/ScintillaBase.cxx | 3 --- 4 files changed, 1 insertion(+), 14 deletions(-) (limited to 'src') diff --git a/src/Editor.cxx b/src/Editor.cxx index acd5b3611..859ae180c 100644 --- a/src/Editor.cxx +++ b/src/Editor.cxx @@ -15,9 +15,6 @@ #include #include #include -#ifndef SCINTILLA_NO_UNORDERED_MAP -#include -#endif #include #include diff --git a/src/PositionCache.cxx b/src/PositionCache.cxx index d92d49338..009ed7cfa 100644 --- a/src/PositionCache.cxx +++ b/src/PositionCache.cxx @@ -13,9 +13,6 @@ #include #include #include -#ifndef SCINTILLA_NO_UNORDERED_MAP -#include -#endif #include "Platform.h" diff --git a/src/PositionCache.h b/src/PositionCache.h index bab43390a..10afbd972 100644 --- a/src/PositionCache.h +++ b/src/PositionCache.h @@ -120,15 +120,11 @@ public: } }; -#ifdef SCINTILLA_NO_UNORDERED_MAP typedef std::map MapRepresentation; -#else -typedef std::unordered_map MapRepresentation; -#endif class SpecialRepresentations { MapRepresentation mapReprs; - int startByteHasReprs[0x100]; + short startByteHasReprs[0x100]; public: SpecialRepresentations(); void SetRepresentation(const char *charBytes, const char *value); diff --git a/src/ScintillaBase.cxx b/src/ScintillaBase.cxx index 462d90ea4..05768799d 100644 --- a/src/ScintillaBase.cxx +++ b/src/ScintillaBase.cxx @@ -14,9 +14,6 @@ #include #include #include -#ifndef SCINTILLA_NO_UNORDERED_MAP -#include -#endif #include #include "Platform.h" -- cgit v1.2.3