From 6c88c9553623563735cd9aa6d52823fdd7a4f991 Mon Sep 17 00:00:00 2001 From: QwQ <59914293+Qv2ray-dev@users.noreply.github.com> Date: Tue, 4 Aug 2020 17:36:42 +0800 Subject: [PATCH] cleanup: remove empty source file --- cmake/components/qv2ray-ui.cmake | 1 - makespec/BUILDVERSION | 2 +- src/ui/editors/w_RoutesEditor_extra.cpp | 48 ------------------------- 3 files changed, 1 insertion(+), 50 deletions(-) delete mode 100644 src/ui/editors/w_RoutesEditor_extra.cpp diff --git a/cmake/components/qv2ray-ui.cmake b/cmake/components/qv2ray-ui.cmake index 64ea8d38..56ba99ba 100644 --- a/cmake/components/qv2ray-ui.cmake +++ b/cmake/components/qv2ray-ui.cmake @@ -105,7 +105,6 @@ set(QV2RAY_UI_SOURCES ${CMAKE_SOURCE_DIR}/src/ui/editors/w_OutboundEditor.hpp ${CMAKE_SOURCE_DIR}/src/ui/editors/w_RoutesEditor.hpp ${CMAKE_SOURCE_DIR}/src/ui/editors/w_RoutesEditor.cpp - ${CMAKE_SOURCE_DIR}/src/ui/editors/w_RoutesEditor_extra.cpp # Windows ${CMAKE_SOURCE_DIR}/src/ui/windows/w_ImportConfig.hpp ${CMAKE_SOURCE_DIR}/src/ui/windows/w_ImportConfig.cpp diff --git a/makespec/BUILDVERSION b/makespec/BUILDVERSION index e885b56e..3542781f 100644 --- a/makespec/BUILDVERSION +++ b/makespec/BUILDVERSION @@ -1 +1 @@ -5855 +5856 diff --git a/src/ui/editors/w_RoutesEditor_extra.cpp b/src/ui/editors/w_RoutesEditor_extra.cpp deleted file mode 100644 index 6dfe0599..00000000 --- a/src/ui/editors/w_RoutesEditor_extra.cpp +++ /dev/null @@ -1,48 +0,0 @@ -#include "core/CoreUtils.hpp" -#include "ui/common/UIBase.hpp" -#include "ui/node/models/InboundNodeModel.hpp" -#include "ui/node/models/OutboundNodeModel.hpp" -#include "ui/node/models/RuleNodeModel.hpp" -#include "w_RoutesEditor.hpp" - -// Do not use const reference here. -// void RouteEditor::ResolveDefaultOutboundTag(const QString original, const QString newTag) -//{ -// LOG(MODULE_UI, "Resolving default outbound settings: default=" + defaultOutbound + " original=" + original + " new=" + newTag) -// auto isDefaultChanged = original == defaultOutbound; -//// -// isLoading = true; -// defaultOutboundCombo->clear(); -//// -// for (const auto &out : outbounds) defaultOutboundCombo->addItem(getTag(out.realOutbound)); -//// -// isLoading = false; -//// -// if (!isDefaultChanged) -//{ -// LOG(MODULE_UI, "Default outbound is not changed: retaining: " + defaultOutbound) -// // Just simply restore the default one. -// defaultOutboundCombo->setCurrentText(defaultOutbound); -//} -// else if (newTag.isEmpty()) -//{ -// LOG(MODULE_UI, "Default outbound is removed, using first key from the outbounds as the default one.") -// -// // Removed the default one, so set the first one as the default. -// if (outbounds.isEmpty()) -// { -// defaultOutbound.clear(); -// } -// else -// { -// defaultOutbound = getTag(outbounds.first().realOutbound); -// defaultOutboundCombo->addItem(getTag(outbounds.first().realOutbound)); -// } -//} -// else -//{ -// LOG(MODULE_UI, "Default outbound is renamed, new tag is " + newTag) -// defaultOutboundCombo->setCurrentText(newTag); -// defaultOutbound = newTag; -//} -//}