From a4e3092bd01c03ff795c0f875244bf4caaedcfae Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Wed, 18 Nov 2020 14:59:15 +0100 Subject: [PATCH] pylibsmb: Remove unused py_cli_state->is_smb1 Signed-off-by: Volker Lendecke Reviewed-by: Jeremy Allison --- source3/libsmb/pylibsmb.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/source3/libsmb/pylibsmb.c b/source3/libsmb/pylibsmb.c index a04cafdb36f..750082537c4 100644 --- a/source3/libsmb/pylibsmb.c +++ b/source3/libsmb/pylibsmb.c @@ -95,7 +95,6 @@ struct py_cli_oplock_break { struct py_cli_state { PyObject_HEAD struct cli_state *cli; - bool is_smb1; struct tevent_context *ev; int (*req_wait_fn)(struct tevent_context *ev, struct tevent_req *req); @@ -419,7 +418,6 @@ static PyObject *py_cli_state_new(PyTypeObject *type, PyObject *args, return NULL; } self->cli = NULL; - self->is_smb1 = false; self->ev = NULL; self->thread_state = NULL; self->oplock_waiter = NULL; @@ -537,10 +535,6 @@ static int py_cli_state_init(struct py_cli_state *self, PyObject *args, return -1; } - if (smbXcli_conn_protocol(self->cli->conn) < PROTOCOL_SMB2_02) { - self->is_smb1 = true; - } - /* * Oplocks require a multi threaded connection */ -- 2.34.1