1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-12 09:18:10 +03:00

s3: smbd: Remove dptr_fetch_lanman2() - unused.

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
This commit is contained in:
Jeremy Allison 2019-07-17 13:28:53 -07:00 committed by Ralph Boehme
parent d6e709c43e
commit b4431ad305
2 changed files with 4 additions and 23 deletions

View File

@ -818,25 +818,6 @@ files_struct *dptr_fetch_fsp(struct smbd_server_connection *sconn,
return dptr->dir_hnd->fsp;
}
/****************************************************************************
Fetch the dir ptr.
****************************************************************************/
struct dptr_struct *dptr_fetch_lanman2(struct smbd_server_connection *sconn,
int dptr_num)
{
struct dptr_struct *dptr = dptr_get(sconn, dptr_num);
if (!dptr) {
DEBUG(3,("fetched null dirptr %d\n",dptr_num));
return(NULL);
}
DEBUG(3,("fetching dirptr %d for path %s\n",
dptr_num,
dptr->smb_dname->base_name));
return(dptr);
}
/****************************************************************************
Fetch the fsp associated with the dptr_num.
****************************************************************************/
@ -844,11 +825,13 @@ struct dptr_struct *dptr_fetch_lanman2(struct smbd_server_connection *sconn,
files_struct *dptr_fetch_lanman2_fsp(struct smbd_server_connection *sconn,
int dptr_num)
{
struct dptr_struct *dptr = dptr_fetch_lanman2(sconn, dptr_num);
struct dptr_struct *dptr = dptr_get(sconn, dptr_num);
if (dptr == NULL) {
return NULL;
}
DBG_NOTICE("fetching dirptr %d for path %s\n",
dptr_num,
dptr->smb_dname->base_name);
return dptr->dir_hnd->fsp;
}

View File

@ -209,8 +209,6 @@ bool dptr_fill(struct smbd_server_connection *sconn,
char *buf1,unsigned int key);
files_struct *dptr_fetch_fsp(struct smbd_server_connection *sconn,
char *buf,int *num);
struct dptr_struct *dptr_fetch_lanman2(struct smbd_server_connection *sconn,
int dptr_num);
files_struct *dptr_fetch_lanman2_fsp(struct smbd_server_connection *sconn,
int dptr_num);
bool get_dir_entry(TALLOC_CTX *ctx,