From 4dade329f7636d32f7cc606280b33db14b4a585d Mon Sep 17 00:00:00 2001 From: Maarten ter Huurne Date: Wed, 28 Jul 2010 03:16:40 +0200 Subject: [PATCH] Use tr1::unordered_map instead of google::dense_hash_map in SurfaceCollection. This reduces the binary size by about 45K. --- src/surfacecollection.cpp | 2 -- src/surfacecollection.h | 4 ++-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/surfacecollection.cpp b/src/surfacecollection.cpp index 47825fa..cdb2f16 100644 --- a/src/surfacecollection.cpp +++ b/src/surfacecollection.cpp @@ -27,8 +27,6 @@ using std::endl; using std::string; SurfaceCollection::SurfaceCollection(bool defaultAlpha, const string &skin) { - surfaces.set_empty_key(" "); - surfaces.set_deleted_key(""); this->defaultAlpha = defaultAlpha; setSkin(skin); } diff --git a/src/surfacecollection.h b/src/surfacecollection.h index 307dc5d..48386e1 100644 --- a/src/surfacecollection.h +++ b/src/surfacecollection.h @@ -20,12 +20,12 @@ #ifndef SURFACECOLLECTION_H #define SURFACECOLLECTION_H -#include #include +#include class Surface; -typedef google::dense_hash_map SurfaceHash; +typedef std::tr1::unordered_map SurfaceHash; /** Hash Map of surfaces that loads surfaces not already loaded and reuses already loaded ones.