diff options
author | Volker Lendecke <vl@samba.org> | 2010-09-27 01:49:01 +0200 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2010-09-27 18:14:47 +0200 |
commit | f1c1959f1368741df052fd1d53cd748b8608f2f0 (patch) | |
tree | 8407685ecfcd2ab3c535d712bdb65413bcbe1903 /source3/smbd | |
parent | 6319e0da100f813efc12b13b805c6c59afe5ab26 (diff) | |
download | samba-f1c1959f1368741df052fd1d53cd748b8608f2f0.tar.gz samba-f1c1959f1368741df052fd1d53cd748b8608f2f0.tar.bz2 samba-f1c1959f1368741df052fd1d53cd748b8608f2f0.zip |
s3: Remove some unused code
Diffstat (limited to 'source3/smbd')
-rw-r--r-- | source3/smbd/files.c | 50 |
1 files changed, 0 insertions, 50 deletions
diff --git a/source3/smbd/files.c b/source3/smbd/files.c index 67fd7c33e6..733cdce1d7 100644 --- a/source3/smbd/files.c +++ b/source3/smbd/files.c @@ -243,23 +243,6 @@ struct files_struct *files_forall( } /**************************************************************************** - Debug to enumerate all open files in the smbd. -****************************************************************************/ - -void file_dump_open_table(void) -{ - int count=0; - files_struct *fsp; - - for (fsp=Files;fsp;fsp=fsp->next,count++) { - DEBUG(10,("Files[%d], fnum = %d, name %s, fd = %d, gen = %lu, " - "fileid=%s\n", count, fsp->fnum, fsp_str_dbg(fsp), - fsp->fh->fd, (unsigned long)fsp->fh->gen_id, - file_id_string_tos(&fsp->file_id))); - } -} - -/**************************************************************************** Find a fsp given a file descriptor. ****************************************************************************/ @@ -317,22 +300,6 @@ files_struct *file_find_dif(struct file_id id, unsigned long gen_id) } /**************************************************************************** - Check if an fsp still exists. -****************************************************************************/ - -files_struct *file_find_fsp(files_struct *orig_fsp) -{ - files_struct *fsp; - - for (fsp=Files;fsp;fsp=fsp->next) { - if (fsp == orig_fsp) - return fsp; - } - - return NULL; -} - -/**************************************************************************** Find the first fsp given a device and inode. We use a singleton cache here to speed up searching from getfilepathinfo calls. @@ -380,23 +347,6 @@ files_struct *file_find_di_next(files_struct *start_fsp) } /**************************************************************************** - Find a fsp that is open for printing. -****************************************************************************/ - -files_struct *file_find_print(void) -{ - files_struct *fsp; - - for (fsp=Files;fsp;fsp=fsp->next) { - if (fsp->print_file) { - return fsp; - } - } - - return NULL; -} - -/**************************************************************************** Find any fsp open with a pathname below that of an already open path. ****************************************************************************/ |