From 9ddf609d50b5b44b36a28aac47b494f408240395 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C5=93ur?= Date: Mon, 25 Mar 2024 00:25:00 +0800 Subject: [PATCH] KeepEmptyLinesAtTheStartOfBlocks: false (#6726) --- .clang-format | 2 +- gtk/OptionsDialog.cc | 1 - libtransmission/peer-mgr.cc | 1 - libtransmission/tr-dht.cc | 1 - 4 files changed, 1 insertion(+), 4 deletions(-) diff --git a/.clang-format b/.clang-format index b30567097..cf9fa7365 100644 --- a/.clang-format +++ b/.clang-format @@ -55,7 +55,7 @@ ConstructorInitializerAllOnOneLineOrOnePerLine: false ConstructorInitializerIndentWidth: 4 FixNamespaceComments: true IndentGotoLabels: false -KeepEmptyLinesAtTheStartOfBlocks: true +KeepEmptyLinesAtTheStartOfBlocks: false QualifierAlignment: Right SortUsingDeclarations: true SpaceAfterTemplateKeyword: false diff --git a/gtk/OptionsDialog.cc b/gtk/OptionsDialog.cc index 31460ceaf..69c781d07 100644 --- a/gtk/OptionsDialog.cc +++ b/gtk/OptionsDialog.cc @@ -386,7 +386,6 @@ TorrentFileChooserDialog::TorrentFileChooserDialog(Gtk::Window& parent, Glib::Re void TorrentUrlChooserDialog::onOpenURLResponse(int response, Gtk::Entry const& entry, Glib::RefPtr const& core) { - if (response == TR_GTK_RESPONSE_TYPE(CANCEL)) { close(); diff --git a/libtransmission/peer-mgr.cc b/libtransmission/peer-mgr.cc index 8650c3cab..87c1749af 100644 --- a/libtransmission/peer-mgr.cc +++ b/libtransmission/peer-mgr.cc @@ -347,7 +347,6 @@ public: tor_in->swarm_is_all_seeds_.observe([this](tr_torrent* /*tor*/) { on_swarm_is_all_seeds(); }), } } { - rebuild_webseeds(); } diff --git a/libtransmission/tr-dht.cc b/libtransmission/tr-dht.cc index 15209c0e5..9c1cd9bc2 100644 --- a/libtransmission/tr-dht.cc +++ b/libtransmission/tr-dht.cc @@ -52,7 +52,6 @@ using namespace std::literals; // the dht library needs us to implement these: extern "C" { - // This function should return true when a node is blacklisted. // We don't support using a blacklist with the DHT in Transmission, // since massive (ab)use of this feature could harm the DHT. However,