summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBilal Alsharifi <bilal.alsharifi@gmail.com>2021-09-13 09:56:45 -0400
committerBilal Alsharifi <bilal.alsharifi@gmail.com>2021-09-13 09:56:45 -0400
commit878312ffe7d737d586e332888ddb8c557a6b08b3 (patch)
tree33216b9f892bfad29e973f71829bcef838b30f2d
parent8fc8e787affb177d0a5235f9ddf43f1a37c8302a (diff)
downloadsdl_android-878312ffe7d737d586e332888ddb8c557a6b08b3.tar.gz
Remove unnecessary call to transferCellIDsFromCells()
-rw-r--r--base/src/main/java/com/smartdevicelink/managers/screen/menu/MenuReplaceOperation.java3
1 files changed, 0 insertions, 3 deletions
diff --git a/base/src/main/java/com/smartdevicelink/managers/screen/menu/MenuReplaceOperation.java b/base/src/main/java/com/smartdevicelink/managers/screen/menu/MenuReplaceOperation.java
index 0e4f288f1..41e54bc19 100644
--- a/base/src/main/java/com/smartdevicelink/managers/screen/menu/MenuReplaceOperation.java
+++ b/base/src/main/java/com/smartdevicelink/managers/screen/menu/MenuReplaceOperation.java
@@ -128,7 +128,6 @@ class MenuReplaceOperation extends Task {
final List<MenuCell> newKeeps = filterMenuCellsWithStatusList(updatedMenu, addMenuStatus, MenuCellState.KEEP);
// Old kept cells ids need to be moved to the new kept cells so that submenu changes have correct parent ids
- // We will transfer the ids for subCells later
transferCellIDsFromCells(oldKeeps, newKeeps);
// Transfer new cells' listeners to the old cells, which are stored in the current menu
@@ -254,8 +253,6 @@ class MenuReplaceOperation extends Task {
final List<MenuCell> oldSubcellKeeps = filterMenuCellsWithStatusList(oldKeptCells.get(index).getSubCells(), deleteMenuStatus, MenuCellState.KEEP);
final List<MenuCell> newSubcellKeeps = filterMenuCellsWithStatusList(newKeptCells.get(index).getSubCells(), addMenuStatus, MenuCellState.KEEP);
- transferCellIDsFromCells(oldSubcellKeeps, newSubcellKeeps);
-
transferCellListenersFromCells(newSubcellKeeps, oldSubcellKeeps);
sendDeleteMenuCells(cellsToDelete, new CompletionListener() {