From d17cbc473f161d6963dcd29edd0e1cf7c62beef4 Mon Sep 17 00:00:00 2001 From: Dario Casalinuovo Date: Mon, 28 Mar 2016 20:56:25 +0200 Subject: [PATCH] BufferManager: Remove custom hash key --- src/servers/media/BufferManager.h | 44 +++---------------------------- 1 file changed, 3 insertions(+), 41 deletions(-) diff --git a/src/servers/media/BufferManager.h b/src/servers/media/BufferManager.h index 91816b76f2..de31770745 100644 --- a/src/servers/media/BufferManager.h +++ b/src/servers/media/BufferManager.h @@ -60,47 +60,9 @@ private: std::set teams; }; - template struct id_hash { - id_hash() - : - fID(0) - { - } - - id_hash(Type id) - : - fID(id) - { - } - - id_hash(const id_hash& other) - { - fID = other.fID; - } - - uint32 GetHashCode() const - { - return fID; - } - - operator Type() const - { - return fID; - } - - id_hash& operator=(const id_hash& other) - { - fID = other.fID; - return *this; - } - - private: - Type fID; - }; - - typedef HashMap, buffer_info> BufferInfoMap; - typedef HashMap, clone_info> CloneInfoMap; - typedef HashMap, area_id> SourceInfoMap; + typedef HashMap, buffer_info> BufferInfoMap; + typedef HashMap, clone_info> CloneInfoMap; + typedef HashMap, area_id> SourceInfoMap; BPrivate::SharedBufferList* fSharedBufferList; area_id fSharedBufferListArea;