smbd: Remove smbXsrv_open_global_destructor()
authorVolker Lendecke <vl@samba.org>
Wed, 11 Jan 2023 13:01:29 +0000 (14:01 +0100)
committerStefan Metzmacher <metze@samba.org>
Wed, 18 Jan 2023 11:49:38 +0000 (11:49 +0000)
This did not do much.

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
source3/smbd/smbXsrv_open.c

index 8f0812311775dc0721ea53ba0e0927008d2d0585..af97b5ea49885b1cfc61f9837c9f06a35114920a 100644 (file)
@@ -244,11 +244,6 @@ static NTSTATUS smbXsrv_open_local_lookup(struct smbXsrv_open_table *table,
        return NT_STATUS_OK;
 }
 
-static int smbXsrv_open_global_destructor(struct smbXsrv_open_global0 *global)
-{
-       return 0;
-}
-
 static void smbXsrv_open_global_verify_record(struct db_record *db_rec,
                                        bool *is_free,
                                        bool *was_free,
@@ -270,7 +265,6 @@ static NTSTATUS smbXsrv_open_global_allocate(struct db_context *db,
        if (global == NULL) {
                return NT_STATUS_NO_MEMORY;
        }
-       talloc_set_destructor(global, smbXsrv_open_global_destructor);
 
        /*
         * We mark every slot as invalid using 0xFF.
@@ -536,8 +530,6 @@ static NTSTATUS smbXsrv_open_global_lookup(struct smbXsrv_open_table *table,
 
        (*_global)->db_rec = talloc_move(*_global, &global_rec);
 
-       talloc_set_destructor(*_global, smbXsrv_open_global_destructor);
-
        return NT_STATUS_OK;
 }