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,