From d99d05c3e8b5e1f57cefc75673ce78613a14a805 Mon Sep 17 00:00:00 2001 From: Levi Neely <141506390+lneely@users.noreply.github.com> Date: Tue, 11 Mar 2025 19:02:28 +0100 Subject: [PATCH] remove unused field --- rpcclient.cpp | 4 +--- rpcclient.h | 2 -- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/rpcclient.cpp b/rpcclient.cpp index 8eac593..c6991bf 100644 --- a/rpcclient.cpp +++ b/rpcclient.cpp @@ -24,9 +24,7 @@ #define POVERLAY_READ_INCOMPLETE -105 #define POVERLAY_READ_INVALID_RESPONSE -106 -RpcClient::RpcClient() { - this->sockpath = "/tmp/pcloud_unix_soc.sock"; -} +RpcClient::RpcClient() {} RpcClient::~RpcClient() {} diff --git a/rpcclient.h b/rpcclient.h index be42ccc..4c11f23 100644 --- a/rpcclient.h +++ b/rpcclient.h @@ -13,8 +13,6 @@ typedef enum _pCloud_FileState { class RpcClient { private: - const char *sockpath; - int connectSocket(const char *sockpath, char **out, size_t *out_size); int writeRequest(int fd, int msgtype, const char *value, char **out, size_t *out_size); int readResponse(int fd, char **out, size_t *out_size);