Author: vlendec Date: 2007-02-13 15:57:54 +0000 (Tue, 13 Feb 2007) New Revision: 21319
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=21319 Log: Remove functions not needed anymore Modified: branches/SAMBA_3_0/source/smbd/files.c Changeset: Modified: branches/SAMBA_3_0/source/smbd/files.c =================================================================== --- branches/SAMBA_3_0/source/smbd/files.c 2007-02-13 15:56:09 UTC (rev 21318) +++ branches/SAMBA_3_0/source/smbd/files.c 2007-02-13 15:57:54 UTC (rev 21319) @@ -361,50 +361,6 @@ 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. ****************************************************************************/