diff options
| author | 2020-03-06 15:46:16 -0800 | |
|---|---|---|
| committer | 2020-03-06 15:46:16 -0800 | |
| commit | 39db0b34a86c142b5ec05e89c74be83669326d22 (patch) | |
| tree | ba0c815948d990b54ebba1297398262a3892e52f /libs/gui/LayerState.cpp | |
| parent | 34560b6d0950b54497d70a319d5496ccc0ffec10 (diff) | |
SurfaceControl: Remove transferTouchFocus
As it's unused.
Bug: 147257069
Test: Existing tests pass
Change-Id: I60ef95d6cd86ed28db73ebbb0d02062194f9c0e7
Diffstat (limited to 'libs/gui/LayerState.cpp')
| -rw-r--r-- | libs/gui/LayerState.cpp | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/libs/gui/LayerState.cpp b/libs/gui/LayerState.cpp index a9c9b7460b..f7158d0472 100644 --- a/libs/gui/LayerState.cpp +++ b/libs/gui/LayerState.cpp @@ -443,39 +443,18 @@ void layer_state_t::merge(const layer_state_t& other) { // ------------------------------- InputWindowCommands ---------------------------------------- void InputWindowCommands::merge(const InputWindowCommands& other) { - transferTouchFocusCommands - .insert(transferTouchFocusCommands.end(), - std::make_move_iterator(other.transferTouchFocusCommands.begin()), - std::make_move_iterator(other.transferTouchFocusCommands.end())); - syncInputWindows |= other.syncInputWindows; } void InputWindowCommands::clear() { - transferTouchFocusCommands.clear(); syncInputWindows = false; } void InputWindowCommands::write(Parcel& output) const { - output.writeUint32(static_cast<uint32_t>(transferTouchFocusCommands.size())); - for (const auto& transferTouchFocusCommand : transferTouchFocusCommands) { - output.writeStrongBinder(transferTouchFocusCommand.fromToken); - output.writeStrongBinder(transferTouchFocusCommand.toToken); - } - output.writeBool(syncInputWindows); } void InputWindowCommands::read(const Parcel& input) { - size_t count = input.readUint32(); - transferTouchFocusCommands.clear(); - for (size_t i = 0; i < count; i++) { - TransferTouchFocusCommand transferTouchFocusCommand; - transferTouchFocusCommand.fromToken = input.readStrongBinder(); - transferTouchFocusCommand.toToken = input.readStrongBinder(); - transferTouchFocusCommands.emplace_back(transferTouchFocusCommand); - } - syncInputWindows = input.readBool(); } |