[DomTree] Remove dead code.[NFC]

This commit is contained in:
Alina Sbirlea 2020-07-27 16:41:55 -07:00
parent 8120eba5fc
commit 18c725e735
1 changed files with 1 additions and 5 deletions

View File

@ -92,13 +92,9 @@ struct SemiNCAInfo {
BatchUpdateInfo *BatchUpdates;
using BatchUpdatePtr = BatchUpdateInfo *;
std::unique_ptr<GraphDiffT> EmptyGD;
// If BUI is a nullptr, then there's no batch update in progress.
SemiNCAInfo(BatchUpdatePtr BUI) : BatchUpdates(BUI) {
if (!BatchUpdates)
EmptyGD = std::make_unique<GraphDiffT>();
}
SemiNCAInfo(BatchUpdatePtr BUI) : BatchUpdates(BUI) {}
void clear() {
NumToNode = {nullptr}; // Restore to initial state with a dummy start node.