summaryrefslogtreecommitdiff
path: root/source3/smbd
diff options
context:
space:
mode:
authorVolker Lendecke <vlendec@samba.org>2007-02-13 15:57:54 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:17:56 -0500
commita2f2653d9ae4e535384e925112745ed788e2422e (patch)
tree8c93b9248a64cc8bf96f4b3874d62366777c2bb1 /source3/smbd
parent3a46604800ec03dbedce8e7af42047a730a5b6f9 (diff)
downloadsamba-a2f2653d9ae4e535384e925112745ed788e2422e.tar.gz
samba-a2f2653d9ae4e535384e925112745ed788e2422e.tar.bz2
samba-a2f2653d9ae4e535384e925112745ed788e2422e.zip
r21319: Remove functions not needed anymore
(This used to be commit 0c8a364aec68bc7338d034b6f8223ec4085c9e07)
Diffstat (limited to 'source3/smbd')
-rw-r--r--source3/smbd/files.c44
1 files changed, 0 insertions, 44 deletions
diff --git a/source3/smbd/files.c b/source3/smbd/files.c
index fa162711ae..0706548334 100644
--- a/source3/smbd/files.c
+++ b/source3/smbd/files.c
@@ -361,50 +361,6 @@ files_struct *file_find_di_next(files_struct *start_fsp)
return NULL;
}
-/*
- * Same as file_find_di_first/next, but also finds non-fd opens.
- *
- * Jeremy, do we really need the fsp->fh->fd != -1 ??
- */
-
-struct files_struct *fsp_find_di_first(SMB_DEV_T dev, SMB_INO_T inode)
-{
- files_struct *fsp;
-
- if (fsp_fi_cache.dev == dev && fsp_fi_cache.inode == inode) {
- /* Positive or negative cache hit. */
- return fsp_fi_cache.fsp;
- }
-
- fsp_fi_cache.dev = dev;
- fsp_fi_cache.inode = inode;
-
- for (fsp=Files;fsp;fsp=fsp->next) {
- if ((fsp->dev == dev) && (fsp->inode == inode)) {
- /* Setup positive cache. */
- fsp_fi_cache.fsp = fsp;
- return fsp;
- }
- }
-
- /* Setup negative cache. */
- fsp_fi_cache.fsp = NULL;
- return NULL;
-}
-
-struct files_struct *fsp_find_di_next(files_struct *start_fsp)
-{
- files_struct *fsp;
-
- for (fsp = start_fsp->next;fsp;fsp=fsp->next) {
- if ( (fsp->dev == start_fsp->dev)
- && (fsp->inode == start_fsp->inode) )
- return fsp;
- }
-
- return NULL;
-}
-
/****************************************************************************
Find a fsp that is open for printing.
****************************************************************************/