ncdengine/debuglogger/obex/src/btservicesearcher.cpp
branchRCL_3
changeset 26 8b7f4e561641
parent 25 7333d7932ef7
--- a/ncdengine/debuglogger/obex/src/btservicesearcher.cpp	Tue Aug 31 15:21:33 2010 +0300
+++ b/ncdengine/debuglogger/obex/src/btservicesearcher.cpp	Wed Sep 01 12:22:02 2010 +0100
@@ -27,14 +27,11 @@
 
 CBTServiceSearcher::~CBTServiceSearcher()
 {
-#ifdef _0
     if (iIsDeviceSelectorConnected)
 	{
         iDeviceSelector.CancelNotifier(KDeviceSelectionNotifierUid);
         iDeviceSelector.Close();
 	}
-#endif
-    
     delete iSdpSearchPattern;
     iSdpSearchPattern = NULL;
 	
@@ -49,14 +46,11 @@
 
 void CBTServiceSearcher::Cancel() {
 
-#ifdef _0
     if (iIsDeviceSelectorConnected)
 	{
         iDeviceSelector.CancelNotifier(KDeviceSelectionNotifierUid);
     
 	}
-#endif
-    
     delete iSdpSearchPattern;
     iSdpSearchPattern = NULL;
 	
@@ -72,28 +66,23 @@
 
 }
 
-void CBTServiceSearcher::SelectDeviceByDiscoveryL(TRequestStatus& /* aObserverRequestStatus */)
+void CBTServiceSearcher::SelectDeviceByDiscoveryL(TRequestStatus& aObserverRequestStatus)
     {
-    
-#ifdef _0
     if (!iIsDeviceSelectorConnected)
         {
         User::LeaveIfError(iDeviceSelector.Connect());
         iIsDeviceSelectorConnected = ETrue;
         }
-#endif
 
     //  Request a device selection 
     TBTDeviceSelectionParamsPckg selectionFilter;
     selectionFilter().SetUUID(ServiceClass());
-    
-#ifdef _0
+
     iDeviceSelector.StartNotifierAndGetResponse(
         aObserverRequestStatus, 
         KDeviceSelectionNotifierUid, 
         selectionFilter, 
         iResponse);
-#endif
     }