From 02c989e3e0f58d19630e475f60971e05a4156503 Mon Sep 17 00:00:00 2001 From: Dennis Oberst Date: Tue, 19 Aug 2025 11:55:39 +0200 Subject: [PATCH] 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 --- src/grpc/qgrpchttp2channel.cpp | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/src/grpc/qgrpchttp2channel.cpp b/src/grpc/qgrpchttp2channel.cpp index c92e2756..f8f682c6 100644 --- a/src/grpc/qgrpchttp2channel.cpp +++ b/src/grpc/qgrpchttp2channel.cpp @@ -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 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 m_reconnectFunction; @@ -932,7 +921,6 @@ QGrpcHttp2ChannelPrivate::QGrpcHttp2ChannelPrivate(const QUrl &uri, QGrpcHttp2Ch auto *localSocket = initSocket(); if (scheme == UnixAbstractScheme) localSocket->setSocketOptions(QLocalSocket::AbstractNamespaceOption); - m_isLocalSocket = true; connect(localSocket, &QLocalSocket::connected, this, &QGrpcHttp2ChannelPrivate::createHttp2Connection);