From 9c4fd3d881bda74b0e07f528557059ff30f294c6 Mon Sep 17 00:00:00 2001 From: eldritch horrors Date: Wed, 11 Jun 2025 17:22:33 +0200 Subject: [PATCH] libstore: remove unused RemoteStore::Connection::closeWrite Change-Id: I4a25807ad870c4704b8efa70e5652206ae654995 --- lix/libstore/remote-store-connection.hh | 2 -- lix/libstore/ssh-store.cc | 5 ----- lix/libstore/uds-remote-store.cc | 7 ------- lix/libstore/uds-remote-store.hh | 1 - 4 files changed, 15 deletions(-) diff --git a/lix/libstore/remote-store-connection.hh b/lix/libstore/remote-store-connection.hh index e26f562b3..8083bb048 100644 --- a/lix/libstore/remote-store-connection.hh +++ b/lix/libstore/remote-store-connection.hh @@ -91,8 +91,6 @@ struct RemoteStore::Connection virtual ~Connection(); - virtual void closeWrite() = 0; - std::exception_ptr processStderr(bool flush = true); }; diff --git a/lix/libstore/ssh-store.cc b/lix/libstore/ssh-store.cc index 208084473..a8a09ef46 100644 --- a/lix/libstore/ssh-store.cc +++ b/lix/libstore/ssh-store.cc @@ -69,11 +69,6 @@ protected: struct Connection : RemoteStore::Connection { std::unique_ptr sshConn; - - void closeWrite() override - { - sshConn->in.close(); - } }; ref openConnection() override; diff --git a/lix/libstore/uds-remote-store.cc b/lix/libstore/uds-remote-store.cc index ca837f524..04d9dbb37 100644 --- a/lix/libstore/uds-remote-store.cc +++ b/lix/libstore/uds-remote-store.cc @@ -50,13 +50,6 @@ std::string UDSRemoteStore::getUri() } } - -void UDSRemoteStore::Connection::closeWrite() -{ - shutdown(fd.get(), SHUT_WR); -} - - ref UDSRemoteStore::openConnection() { auto conn = make_ref(); diff --git a/lix/libstore/uds-remote-store.hh b/lix/libstore/uds-remote-store.hh index a28e6b2b3..1ae3d3e72 100644 --- a/lix/libstore/uds-remote-store.hh +++ b/lix/libstore/uds-remote-store.hh @@ -60,7 +60,6 @@ private: struct Connection : RemoteStore::Connection { AutoCloseFD fd; - void closeWrite() override; }; ref openConnection() override;