summaryrefslogtreecommitdiff
path: root/src/context/cdlist.h
diff options
context:
space:
mode:
authorClark Barrett <barrett@cs.stanford.edu>2016-11-12 09:16:33 -0800
committerClark Barrett <barrett@cs.stanford.edu>2016-11-12 09:19:45 -0800
commitf5e33cfc8cabd5d66f184471f787a7cb8f8d3c6c (patch)
tree6577168d14b98824a6136c72970b2e8f367df497 /src/context/cdlist.h
parent51beecbceb28f30004bda32e0babf201bd1f94d6 (diff)
Fixed a bug in cdhashmap in which doubly-linked list was not properly cleaned up on a call to obliterate.
Also, removed some experimental code and a unit test from cdmap_black that used it. This test created a CDList *in* context memory which seems like a very bad idea (and it was improperly implemented resulting in a memory leak).
Diffstat (limited to 'src/context/cdlist.h')
-rw-r--r--src/context/cdlist.h17
1 files changed, 0 insertions, 17 deletions
diff --git a/src/context/cdlist.h b/src/context/cdlist.h
index 4a5ebfd30..47667cc8d 100644
--- a/src/context/cdlist.h
+++ b/src/context/cdlist.h
@@ -238,23 +238,6 @@ public:
}
/**
- * Main constructor: d_list starts as NULL, size is 0
- */
- CDList(bool allocatedInCMM,
- Context* context,
- bool callDestructor = true,
- const CleanUp& cleanup = CleanUp(),
- const Allocator& alloc = Allocator()) :
- ContextObj(allocatedInCMM, context),
- d_list(NULL),
- d_size(0),
- d_callDestructor(callDestructor),
- d_sizeAlloc(0),
- d_cleanUp(cleanup),
- d_allocator(alloc) {
- }
-
- /**
* Destructor: delete the list
*/
~CDList() {
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback