[Pcsclite-cvs-commit] r5813 - in /trunk/PCSC/src: prothandler.c prothandler.h

rousseau at users.alioth.debian.org rousseau at users.alioth.debian.org
Tue Jun 28 19:27:15 UTC 2011


Author: rousseau
Date: Tue Jun 28 19:27:15 2011
New Revision: 5813

URL: http://svn.debian.org/wsvn/pcsclite/?sc=1&rev=5813
Log:
Remove now unused PHGetDefaultProtocol() and PHGetAvailableProtocols()

Modified:
    trunk/PCSC/src/prothandler.c
    trunk/PCSC/src/prothandler.h

Modified: trunk/PCSC/src/prothandler.c
URL: http://svn.debian.org/wsvn/pcsclite/trunk/PCSC/src/prothandler.c?rev=5813&op=diff
==============================================================================
--- trunk/PCSC/src/prothandler.c (original)
+++ trunk/PCSC/src/prothandler.c Tue Jun 28 19:27:15 2011
@@ -25,36 +25,6 @@
 #include "atrhandler.h"
 #include "ifdwrapper.h"
 #include "eventhandler.h"
-
-/**
- * Get the default protocol used immediately after reset.
- *
- * This protocol is returned from the function.
- */
-UCHAR PHGetDefaultProtocol(PUCHAR pucAtr, DWORD dwLength)
-{
-	int availableProtocols, currentProtocol;
-
-	if (ATRDecodeAtr(&availableProtocols, &currentProtocol, pucAtr, dwLength))
-		return currentProtocol;
-	else
-		return 0x00;
-}
-
-/**
- * Get the protocols supported by the card.
- *
- * These protocols are returned from the function as bit masks.
- */
-UCHAR PHGetAvailableProtocols(PUCHAR pucAtr, DWORD dwLength)
-{
-	int availableProtocols, currentProtocol;
-
-	if (ATRDecodeAtr(&availableProtocols, &currentProtocol, pucAtr, dwLength))
-		return availableProtocols;
-	else
-		return 0x00;
-}
 
 /**
  * Determine which protocol to use.

Modified: trunk/PCSC/src/prothandler.h
URL: http://svn.debian.org/wsvn/pcsclite/trunk/PCSC/src/prothandler.h?rev=5813&op=diff
==============================================================================
--- trunk/PCSC/src/prothandler.h (original)
+++ trunk/PCSC/src/prothandler.h Tue Jun 28 19:27:15 2011
@@ -17,8 +17,6 @@
 #ifndef __prothandler_h__
 #define __prothandler_h__
 
-	UCHAR PHGetDefaultProtocol(PUCHAR, DWORD);
-	UCHAR PHGetAvailableProtocols(PUCHAR, DWORD);
 	DWORD PHSetProtocol(struct ReaderContext *, DWORD, UCHAR, UCHAR);
 
 #define SET_PROTOCOL_WRONG_ARGUMENT -1




More information about the Pcsclite-cvs-commit mailing list