small improvement (#7288)

* small improvement

* comments addressed

Co-authored-by: kd-11 <15904127+kd-11@users.noreply.github.com>
This commit is contained in:
Maksim Derbasov 2020-01-22 15:28:48 +03:00 committed by Ani
parent adcc3e9c4b
commit 1abdee242a
7 changed files with 5 additions and 9 deletions

View file

@ -697,7 +697,6 @@ PadHandlerBase::connection evdev_joystick_handler::update_connection(const std::
void evdev_joystick_handler::get_mapping(const std::shared_ptr<PadDevice>& device, const std::shared_ptr<Pad>& pad)
{
std::unordered_map<u64, u16> values;
m_dev = std::static_pointer_cast<EvdevDevice>(device);
if (!m_dev || !pad)
return;