libsmb: Remove unused cli_smb2_getattrE()
authorVolker Lendecke <vl@samba.org>
Thu, 4 Jun 2020 13:23:45 +0000 (15:23 +0200)
committerJeremy Allison <jra@samba.org>
Thu, 4 Jun 2020 17:11:40 +0000 (17:11 +0000)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/libsmb/cli_smb2_fnum.c
source3/libsmb/cli_smb2_fnum.h

index e974456dc8f51792ef870bbf13d8e137e437dde6..8487f464a69790bc75ed303a496872da56cc42c9 100644 (file)
@@ -2092,51 +2092,6 @@ NTSTATUS cli_smb2_qfileinfo_basic(struct cli_state *cli,
        return status;
 }
 
-/***************************************************************
- Wrapper that allows SMB2 to query an fnum.
- Implement on top of cli_smb2_qfileinfo_basic().
- Synchronous only.
-***************************************************************/
-
-NTSTATUS cli_smb2_getattrE(struct cli_state *cli,
-                       uint16_t fnum,
-                       uint32_t *pattr,
-                       off_t *size,
-                       time_t *change_time,
-                       time_t *access_time,
-                       time_t *write_time)
-{
-       struct timespec access_time_ts;
-       struct timespec write_time_ts;
-       struct timespec change_time_ts;
-       NTSTATUS status = cli_smb2_qfileinfo_basic(cli,
-                                       fnum,
-                                       pattr,
-                                       size,
-                                       NULL,
-                                       &access_time_ts,
-                                       &write_time_ts,
-                                       &change_time_ts,
-                                        NULL);
-
-       cli->raw_status = status;
-
-       if (!NT_STATUS_IS_OK(status)) {
-               return status;
-       }
-
-       if (change_time) {
-               *change_time = change_time_ts.tv_sec;
-       }
-       if (access_time) {
-               *access_time = access_time_ts.tv_sec;
-       }
-       if (write_time) {
-               *write_time = write_time_ts.tv_sec;
-       }
-       return NT_STATUS_OK;
-}
-
 /***************************************************************
  Wrapper that allows SMB2 to get pathname attributes.
  Synchronous only.
index 95687f74e7f3da45791bbd7a7eb33c5d4804367e..6613ddc0078905a6f91d546db142b87086ab5e4a 100644 (file)
@@ -164,13 +164,6 @@ NTSTATUS cli_smb2_qfileinfo_basic(struct cli_state *cli,
                        struct timespec *write_time,
                        struct timespec *change_time,
                        SMB_INO_T *ino);
-NTSTATUS cli_smb2_getattrE(struct cli_state *cli,
-                       uint16_t fnum,
-                       uint32_t *pattr,
-                       off_t *size,
-                       time_t *change_time,
-                       time_t *access_time,
-                       time_t *write_time);
 NTSTATUS cli_smb2_getatr(struct cli_state *cli,
                        const char *name,
                        uint32_t *pattr,