      }
      i++;
    }
    vlayout->addStretch(3);
  
  
    // Setup buttons for pagination
    QHBoxLayout *prev_next_buttons = new QHBoxLayout;
  
    QPushButton* prev = new QPushButton("Previous");
    prev->setEnabled(page);
    QObject::connect(prev, SIGNAL(released()), this, SLOT(prevPage()));
    prev_next_buttons->addWidget(prev);
  
    QPushButton* next = new QPushButton("Next");
    next->setEnabled(wifi->seen_networks.size() > (page + 1) * networks_per_page);
    QObject::connect(next, SIGNAL(released()), this, SLOT(nextPage()));
    prev_next_buttons->addWidget(next);
  
    vlayout->addLayout(prev_next_buttons, 2);
  }
  
  void WifiUI::handleButton(QAbstractButton* button) {
    QPushButton* btn = static_cast<QPushButton*>(button);
    Network n = wifi->seen_networks[connectButtons->id(btn)];
 
</s> remove 
void WifiUI::prevPage() {
  page--;
  refresh();
}

void WifiUI::nextPage() {
  page++;
  refresh();
}
 </s> add  </s> remove   int page;
 </s> add  </s> remove   void prevPage();
  void nextPage();
 </s> add   void handleButton(QAbstractButton* m_button); </s> remove   void handleButton(QAbstractButton* m_button);
 </s> add 
      }
      i++;
    }
    vlayout->addStretch(3);
















  }
  
  void WifiUI::handleButton(QAbstractButton* button) {
    QPushButton* btn = static_cast<QPushButton*>(button);
    Network n = wifi->seen_networks[connectButtons->id(btn)];
keep keep keep keep replace replace replace replace replace replace replace replace replace replace replace replace replace replace replace replace keep keep keep keep keep
 cleanup tici networking + remove pagination (#20528)

* remove wifi pagination

* cleanup

* little more cleanup

* fix tethering button

Co-authored-by: Comma Device <device@comma.ai> 
selfdrive/ui/qt/offroad/networking.cc