]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
smbd: Remove unused smbXsrv_open_global_key_to_id()
authorVolker Lendecke <vl@samba.org>
Wed, 4 Jan 2023 15:50:01 +0000 (16:50 +0100)
committerStefan Metzmacher <metze@samba.org>
Wed, 18 Jan 2023 11:49:38 +0000 (11:49 +0000)
This isn't exactly rocket science we would need to keep around

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

index d102bf2b2ccb355f27650650a12a491008ac6e92..ba4ca41975a4e957cfbf72d49018be6c62f1b335 100644 (file)
@@ -108,23 +108,6 @@ static TDB_DATA smbXsrv_open_global_id_to_key(uint32_t id,
        return key;
 }
 
-#if 0
-static NTSTATUS smbXsrv_open_global_key_to_id(TDB_DATA key, uint32_t *id)
-{
-       if (id == NULL) {
-               return NT_STATUS_INVALID_PARAMETER;
-       }
-
-       if (key.dsize != SMBXSRV_OPEN_GLOBAL_TDB_KEY_SIZE) {
-               return NT_STATUS_INTERNAL_DB_CORRUPTION;
-       }
-
-       *id = RIVAL(key.dptr, 0);
-
-       return NT_STATUS_OK;
-}
-#endif
-
 static struct db_record *smbXsrv_open_global_fetch_locked(
                        struct db_context *db,
                        uint32_t id,