bluetooth/btstack/linkmgr/hcifacade_commands.cpp
changeset 32 f72906e669b4
parent 21 5e5528a288fe
child 42 206564d58f40
--- a/bluetooth/btstack/linkmgr/hcifacade_commands.cpp	Wed Jun 23 19:28:39 2010 +0300
+++ b/bluetooth/btstack/linkmgr/hcifacade_commands.cpp	Tue Jul 06 15:33:04 2010 +0300
@@ -42,7 +42,6 @@
 #include <bluetooth/hci/rejectsynchronousconnectionrequestcommand.h>
 #include <bluetooth/hci/disconnectcommand.h>
 #include <bluetooth/hci/writelinkpolicysettingscommand.h>
-#include <bluetooth/hci/hostnumberofcompletedpacketscommand.h>
 #include <bluetooth/hci/acceptconnectionrequestcommand.h>
 #include <bluetooth/hci/rejectconnectionrequestcommand.h>
 #include <bluetooth/hci/readremoteversioninfocommand.h>
@@ -186,24 +185,6 @@
 	iCmdController->MhcqAddCommandL(cmd, *this);
 	}
 
-void CHCIFacade::HostNumberOfCompletedPacketsL(THCIConnHandle aConnH, TUint16 aFrags)
-	{
-	RArray<THCIConnectionHandle> connHandles;
-	connHandles.AppendL(aConnH);
-	CleanupClosePushL(connHandles);
-
-	RArray<THCINumOfCompletedPackets> numPackets;
-	numPackets.AppendL(aFrags);
-	CleanupClosePushL(numPackets);
-	
-	CHostNumberOfCompletedPacketsCommand* cmd = CHostNumberOfCompletedPacketsCommand::NewL(1, connHandles, numPackets);
-	// ownership of arrays has been taken by cmd
-	CleanupStack::Pop(2, &connHandles); // &numPackets, &connHandles
-
-	// Ownership of cmd transfered even if MhcqAddCommandL leaves
-	iCmdController->MhcqAddCommandL(cmd, *this);
-	}
-
 void CHCIFacade::AcceptConnectionRequestL(const TBTDevAddr& aAddr, TUint8 aRole)
 	{
 	CAcceptConnectionRequestCommand* cmd = CAcceptConnectionRequestCommand::NewL(aAddr, aRole);