QGrpcHttp2ChannelPrivate: remove unused isLocalSocket()

It's not used anywhere in the code

Pick-to: 6.10 6.9 6.8
Change-Id: I388800f73f67f9f37f008590c9f190aa091d9c6b
Reviewed-by: Alexey Edelev <alexey.edelev@qt.io>
This commit is contained in:
Dennis Oberst 2025-08-19 11:55:39 +02:00
parent 7da4e6886a
commit 02c989e3e0
1 changed files with 0 additions and 12 deletions

View File

@ -345,14 +345,6 @@ public:
void processOperation(QGrpcOperationContext *operationContext, bool endStream = false);
[[nodiscard]] bool isLocalSocket() const
{
#if QT_CONFIG(localserver)
return m_isLocalSocket;
#else
return false;
#endif
}
[[nodiscard]] const QByteArray &contentType() const { return m_contentType; }
[[nodiscard]] const QByteArray &authorityHeader() const { return m_authorityHeader; }
@ -414,9 +406,6 @@ private:
std::unique_ptr<QIODevice> m_socket = nullptr;
bool m_isInsideSocketErrorOccurred = false;
QHttp2Connection *m_connection = nullptr;
#if QT_CONFIG(localserver)
bool m_isLocalSocket = false;
#endif
QByteArray m_contentType;
ConnectionState m_state = Connecting;
std::function<void()> m_reconnectFunction;
@ -932,7 +921,6 @@ QGrpcHttp2ChannelPrivate::QGrpcHttp2ChannelPrivate(const QUrl &uri, QGrpcHttp2Ch
auto *localSocket = initSocket<QLocalSocket>();
if (scheme == UnixAbstractScheme)
localSocket->setSocketOptions(QLocalSocket::AbstractNamespaceOption);
m_isLocalSocket = true;
connect(localSocket, &QLocalSocket::connected, this,
&QGrpcHttp2ChannelPrivate::createHttp2Connection);