summaryrefslogtreecommitdiff
path: root/libs/gui/LayerState.cpp
diff options
context:
space:
mode:
author TreeHugger Robot <treehugger-gerrit@google.com> 2021-11-24 18:11:36 +0000
committer Android (Google) Code Review <android-gerrit@google.com> 2021-11-24 18:11:36 +0000
commitf07a746f9858714ff48417e80ff01588c74cbb26 (patch)
tree2870f1f74d6a87dc05e358d6c4b4735a09598a78 /libs/gui/LayerState.cpp
parent49815200fed59fad0cb45a1029e1608df4394c83 (diff)
parent42a27b5657975485a72033736f37bfe6de0e21a8 (diff)
Merge "SF: Update InputFlinger outside main thread"
Diffstat (limited to 'libs/gui/LayerState.cpp')
-rw-r--r--libs/gui/LayerState.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/libs/gui/LayerState.cpp b/libs/gui/LayerState.cpp
index cd1c810a29..ec0573a1a9 100644
--- a/libs/gui/LayerState.cpp
+++ b/libs/gui/LayerState.cpp
@@ -550,9 +550,7 @@ bool InputWindowCommands::merge(const InputWindowCommands& other) {
}
bool InputWindowCommands::empty() const {
- bool empty = true;
- empty = focusRequests.empty() && !syncInputWindows;
- return empty;
+ return focusRequests.empty() && !syncInputWindows;
}
void InputWindowCommands::clear() {