cleanup: remove empty source file

This commit is contained in:
QwQ 2020-08-04 17:36:42 +08:00
parent dde2849d49
commit 6c88c95536
No known key found for this signature in database
GPG Key ID: E7FAEFAFCD031D4B
3 changed files with 1 additions and 50 deletions

View File

@ -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

View File

@ -1 +1 @@
5855
5856

View File

@ -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;
//}
//}