Skip to content

Commit 226a384

Browse files
committed
Cleanups for CI
1 parent d024669 commit 226a384

File tree

2 files changed

+2
-9
lines changed

2 files changed

+2
-9
lines changed

modules/yup_data_model/tree/yup_DataTree.cpp

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1245,8 +1245,7 @@ void DataTree::Transaction::commit()
12451245
}
12461246
else
12471247
{
1248-
// No undo manager - apply changes directly
1249-
applyChanges();
1248+
applyChangesToTree (dataTree, originalProperties, originalChildren, propertyChanges, childChanges);
12501249
}
12511250

12521251
active = false;
@@ -1522,11 +1521,6 @@ void DataTree::Transaction::applyChangesToTree (DataTree& tree,
15221521
}
15231522
}
15241523

1525-
void DataTree::Transaction::applyChanges()
1526-
{
1527-
applyChangesToTree (dataTree, originalProperties, originalChildren, propertyChanges, childChanges);
1528-
}
1529-
15301524
//==============================================================================
15311525

15321526
DataTree::ValidatedTransaction::ValidatedTransaction (DataTree& tree, ReferenceCountedObjectPtr<DataTreeSchema> schema, const String& description, UndoManager* undoManager)

modules/yup_data_model/tree/yup_DataTree.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -967,7 +967,6 @@ class YUP_API DataTree
967967
struct ChildChange;
968968

969969
void captureInitialState();
970-
void applyChanges();
971970
void rollbackChanges();
972971

973972
static void applyChangesToTree (DataTree& tree,
@@ -1308,7 +1307,7 @@ void DataTree::forEachDescendant (Callback callback) const
13081307
}
13091308
else
13101309
{
1311-
if (callback (child) || traverse (child))
1310+
if (callback (child) || traverse (child))
13121311
return true;
13131312
}
13141313
}

0 commit comments

Comments
 (0)