setupapi: VcpFlush() and vsmString{Compare,Find}() are unused so remove them.

Francois Gouget fgouget at free.fr
Thu May 14 19:11:39 CDT 2009


---
 dlls/setupapi/setupx16.h |    1 -
 dlls/setupapi/virtcopy.c |   32 --------------------------------
 2 files changed, 0 insertions(+), 33 deletions(-)

diff --git a/dlls/setupapi/setupx16.h b/dlls/setupapi/setupx16.h
index e9e800a..f348340 100644
--- a/dlls/setupapi/setupx16.h
+++ b/dlls/setupapi/setupx16.h
@@ -382,7 +382,6 @@ RETERR16 WINAPI VcpQueueCopy16(
 	LPEXPANDVTBL lpExpandVtbl,
 	WORD fl, LPARAM lParam
 );
-RETERR16 VcpFlush16(WORD fl, LPCSTR lpszBackupDest);
 RETERR16 WINAPI VcpClose16(WORD fl, LPCSTR lpszBackupDest);
 
 /* VcpExplain flags */
diff --git a/dlls/setupapi/virtcopy.c b/dlls/setupapi/virtcopy.c
index 435f2d9..2506a6a 100644
--- a/dlls/setupapi/virtcopy.c
+++ b/dlls/setupapi/virtcopy.c
@@ -161,18 +161,6 @@ INT16 WINAPI vsmStringDelete16(VHSTR vhstr)
     return VCPN_FAIL;
 }
 
-/*
- * vsmStringFind() - not exported from a standard SETUPX.DLL, it seems
- */
-VHSTR WINAPI vsmStringFind16(LPCSTR lpszName)
-{
-    WORD n;
-    for (n = 0; n < vhstr_alloc; n++)
-	if ((vhstrlist[n]) && (vhstrlist[n]->refcount) && (!strcmp(vhstrlist[n]->pStr, lpszName)))
-	    return n;
-    return 0xffff;
-}
-
 /***********************************************************************
  *		vsmGetStringName (SETUPX.205)
  *
@@ -194,16 +182,6 @@ INT16 WINAPI vsmGetStringName16(VHSTR vhstr, LPSTR lpszBuffer, int cbBuffer)
 }
 
 /***********************************************************************
- *		vsmStringCompare (not exported from a standard SETUPX.DLL, it seems)
- */
-INT16 WINAPI vsmStringCompare16(VHSTR vhstrA, VHSTR vhstrB)
-{
-    if ((!VALID_VHSTR(vhstrA)) || (!VALID_VHSTR(vhstrB)))
-	return VCPN_FAIL; /* correct ? */
-    return strcmp(vhstrlist[vhstrA]->pStr, vhstrlist[vhstrB]->pStr);
-}
-
-/***********************************************************************
  *		vsmGetStringRawName (SETUPX.208)
  */
 LPCSTR WINAPI vsmGetStringRawName16(VHSTR vhstr)
@@ -485,16 +463,6 @@ static RETERR16 VCP_CopyFiles(void)
 }
 
 /***********************************************************************
- *		VcpFlush - internal (not exported), but documented
- *
- * VNFL_NOW is used for VcpFlush.
- */
-RETERR16 VcpFlush16(WORD fl, LPCSTR lpszBackupDest)
-{
-    return OK;
-}
-
-/***********************************************************************
  *		VcpClose (SETUPX.201)
  *
  * Does callbacks (-> vifproc) with VCPM_VSTATCLOSESTART,
-- 
1.6.2.1




More information about the wine-patches mailing list