mirror of
https://github.com/citra-emu/citra-nightly.git
synced 2025-10-04 14:47:02 +00:00
remove unused or used-once variables
This commit is contained in:
parent
736485cccf
commit
1ce8e0ec93
|
@ -250,17 +250,13 @@ std::pair<unsigned, unsigned> GRenderWindow::ScaleTouch(QPointF pos) {
|
|||
}
|
||||
|
||||
void GRenderWindow::TouchBeginEvent(const QTouchEvent* event) {
|
||||
auto pos = event->touchPoints().first().pos(); // there should only be 1 point in TouchBegin
|
||||
|
||||
const auto [x, y] = ScaleTouch(pos);
|
||||
|
||||
const auto [x, y] = ScaleTouch(event->touchPoints().first().pos());
|
||||
this->TouchPressed(x, y);
|
||||
}
|
||||
|
||||
void GRenderWindow::TouchUpdateEvent(const QTouchEvent* event) {
|
||||
QPointF pos;
|
||||
int active_points = 0;
|
||||
const auto points = event->touchPoints();
|
||||
|
||||
// average all active touch points
|
||||
for (const auto tp : event->touchPoints()) {
|
||||
|
|
Loading…
Reference in a new issue