From 8fc734acb8d8801f77867da701d9235ec923aaad Mon Sep 17 00:00:00 2001 From: Timo Wischer Date: Thu, 9 Jan 2020 09:51:49 +0100 Subject: [PATCH] shm: Remove not used JackMem class Change-Id: I88003f8c55184b141ffd4e068eba889776ce9b14 Signed-off-by: Timo Wischer (cherry picked from commit 742dc38a0d549338a4296ec39edba580f93d40b7) Signed-off-by: Timo Wischer --- common/JackShmMem.cpp | 1 - common/JackShmMem.h | 39 --------------------------------------- 2 files changed, 40 deletions(-) diff --git a/common/JackShmMem.cpp b/common/JackShmMem.cpp index 4651ecf6..e144c225 100644 --- a/common/JackShmMem.cpp +++ b/common/JackShmMem.cpp @@ -26,7 +26,6 @@ namespace Jack static unsigned int fSegmentNum = 0; static jack_shm_info_t gInfo; -size_t JackMem::gSize = 0; JackShmMem::JackShmMem() { diff --git a/common/JackShmMem.h b/common/JackShmMem.h index 04641230..ce239896 100644 --- a/common/JackShmMem.h +++ b/common/JackShmMem.h @@ -39,45 +39,6 @@ void UnlockMemoryImp(void* ptr, size_t size); void LockAllMemory(); void UnlockAllMemory(); -class JackMem -{ - private: - - size_t fSize; - static size_t gSize; - - protected: - - JackMem(): fSize(gSize) - {} - ~JackMem() - {} - - public: - - void* operator new(size_t size) - { - gSize = size; - return calloc(1, size); - } - - void operator delete(void* ptr, size_t size) - { - free(ptr); - } - - void LockMemory() - { - LockMemoryImp(this, fSize); - } - - void UnlockMemory() - { - UnlockMemoryImp(this, fSize); - } - -}; - /*! \brief