From b5ae34d4422399c5d5458d071cca8c9bc89d20bb Mon Sep 17 00:00:00 2001
From: wangzhengquan <wangzhengquan85@126.com>
Date: 星期六, 20 二月 2021 16:27:02 +0800
Subject: [PATCH] status map for close

---
 src/shm/shm_mm.cpp |   21 ---------------------
 1 files changed, 0 insertions(+), 21 deletions(-)

diff --git a/src/shm/shm_mm.cpp b/src/shm/shm_mm.cpp
index 6341086..1fcf604 100644
--- a/src/shm/shm_mm.cpp
+++ b/src/shm/shm_mm.cpp
@@ -23,21 +23,6 @@
 }
 
 
-template <typename T>
- T* shm_mm_attach(int key) {
-	void *ptr;
-	// T* tptr;
-	hashtable_t *hashtable = mm_get_hashtable();
-  ptr = hashtable_get(hashtable, key);
-// printf("shm_mm_malloc_by_key  malloc before %d, %p\n", key, ptr);
-  if(ptr == NULL || ptr == (void *)1 ) {
-    ptr = mm_malloc(sizeof(T));
-    hashtable_put(hashtable, key, ptr);
-    new(ptr) T;
-// printf("shm_mm_malloc_by_key  use new %d, %p\n", key, ptr);
-  }
-  return (T*)ptr; 
-}
 
 void shm_mm_free_by_key(int key) {
 	return mm_free_by_key(key);
@@ -52,9 +37,3 @@
 	 
 	return mm_alloc_key();
 }
- 
-
-// extern int mm_checkheap(int verbose);
-
-
-#endif
\ No newline at end of file

--
Gitblit v1.8.0