Remove unused settings test scaffolding

This commit is contained in:
evgeny committed 2026-10-27 17:27:04 +01:00
1 parent 8323be7272
commit 5233513fcc
1 file changed
-4
@@ -12,14 +12,12 @@
#include <QMessageBox>
#include <QCheckBox>
#include <QSpinBox>
#include <QScopeGuard>
#include <QSettings>
#include <map>
#include <memory>
#include <cstring>
extern "C" {
#include "utun_instance.h"
#include "config_parser.h"
#include "chat/chat_core.h"
#include "chat/chat_setting.h"
#include "mem.h"
@@ -208,8 +206,6 @@ private slots:
QTest::addColumn<bool>("accepted");
for (int target : {int(GUI_SETTING_UI_STATE), int(GUI_SETTING_CHAT)}) {
const int capacity = target == GUI_SETTING_UI_STATE ? sizeof(save_ui_state_arg::data) : sizeof(chat_setting_arg::data);
const auto row = [target](const char* name) { return qPrintable(QString("%1-%2").arg(target).arg(name)); };
Q_UNUSED(row);
const QByteArray prefix = QByteArray::number(target) + '-';
QTest::newRow((prefix + "null-key").constData()) << target << QByteArray() << QByteArray("v") << false;
QTest::newRow((prefix + "empty-key").constData()) << target << QByteArray("") << QByteArray("v") << false;