summaryrefslogtreecommitdiff
path: root/src/mongo/db/exec/plan_stage.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/exec/plan_stage.h')
-rw-r--r--src/mongo/db/exec/plan_stage.h27
1 files changed, 0 insertions, 27 deletions
diff --git a/src/mongo/db/exec/plan_stage.h b/src/mongo/db/exec/plan_stage.h
index a0621d95a8c..4392837219c 100644
--- a/src/mongo/db/exec/plan_stage.h
+++ b/src/mongo/db/exec/plan_stage.h
@@ -281,28 +281,6 @@ public:
*/
void reattachToOperationContext(OperationContext* opCtx);
- /*
- * Releases any resources held by this stage. It is an error to use a PlanStage in any way after
- * calling dispose(). Does not throw exceptions.
- *
- * Propagates to all children, then calls doDispose().
- */
- void dispose(OperationContext* opCtx) {
- try {
- // We may or may not be attached during disposal. We can't call
- // reattachToOperationContext()
- // directly, since that will assert that '_opCtx' is not set.
- _opCtx = opCtx;
-
- for (auto&& child : _children) {
- child->dispose(opCtx);
- }
- doDispose();
- } catch (...) {
- std::terminate();
- }
- }
-
/**
* Retrieve a list of this stage's children. This stage keeps ownership of
* its children.
@@ -404,11 +382,6 @@ protected:
*/
virtual void doReattachToOperationContext() {}
- /**
- * Does stage-specific destruction. Must not throw exceptions.
- */
- virtual void doDispose() {}
-
ClockSource* getClock() const;
OperationContext* opCtx() const {