From 5e1f3906557008a831cb42f295dd3287bd4f213a Mon Sep 17 00:00:00 2001 From: Sergey Yagovtsev Date: Sun, 19 Jun 2016 22:37:17 +0300 Subject: [PATCH] Remove pointer to parent --- reader/main.cpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/reader/main.cpp b/reader/main.cpp index a65c16d..fd9bdb0 100644 --- a/reader/main.cpp +++ b/reader/main.cpp @@ -14,10 +14,9 @@ struct BlocksTree { profiler::SerilizedBlock* node; std::vector children; - BlocksTree* parent; + BlocksTree(){ node = nullptr; - parent = nullptr; } BlocksTree(BlocksTree&& that) @@ -36,7 +35,6 @@ struct BlocksTree delete node; } node = nullptr; - parent = nullptr; } bool operator < (const BlocksTree& other) const @@ -51,12 +49,9 @@ private: void makeMove(BlocksTree&& that) { node = that.node; - parent = that.parent; - children = std::move(that.children); that.node = nullptr; - that.parent = nullptr; } };