]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
pylibsmb: Remove unused py_cli_state->is_smb1
authorVolker Lendecke <vl@samba.org>
Wed, 18 Nov 2020 13:59:15 +0000 (14:59 +0100)
committerJeremy Allison <jra@samba.org>
Thu, 19 Nov 2020 02:48:40 +0000 (02:48 +0000)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/libsmb/pylibsmb.c

index a04cafdb36ffce091965b10fe90ffece6878ad19..750082537c46fa5abb66c09bd484e445f18fc6e3 100644 (file)
@@ -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
         */