]> git.saurik.com Git - wxWidgets.git/commitdiff
clean up release unused variable warnings
authorRyan Norton <wxprojects@comcast.net>
Sat, 16 Apr 2005 12:20:57 +0000 (12:20 +0000)
committerRyan Norton <wxprojects@comcast.net>
Sat, 16 Apr 2005 12:20:57 +0000 (12:20 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33658 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/mac/carbon/mimetmac.cpp

index 0c34efad85f1b5a3c117fd3daa1bb10e3d3d01a5..ea5d87527a989499e692aeab312fb7d4e4b13b5f 100644 (file)
@@ -242,10 +242,9 @@ wxString wxFileTypeImpl::GetCommand(const wxString& verb) const
     if(verb == wxT("open"))
     {
         ICMapEntry entry;
-        OSStatus status = ICGetMapEntry( (ICInstance) m_manager->m_hIC, 
-                                     (Handle) m_manager->m_hDatabase, 
-                                     m_lIndex, &entry);
-        wxASSERT( status == noErr );
+        ICGetMapEntry( (ICInstance) m_manager->m_hIC, 
+                       (Handle) m_manager->m_hDatabase, 
+                       m_lIndex, &entry);
         
         //Technote 1002 is a godsend in launching apps :)
         //The entry in the mimetype database only contains the app
@@ -269,10 +268,9 @@ bool wxFileTypeImpl::GetExtensions(wxArrayString& extensions)
         return false;
     
     ICMapEntry entry;
-    OSStatus status = ICGetMapEntry( (ICInstance) m_manager->m_hIC, 
-                                     (Handle) m_manager->m_hDatabase, 
-                                     m_lIndex, &entry);
-    wxASSERT( status == noErr );
+    ICGetMapEntry( (ICInstance) m_manager->m_hIC, 
+                   (Handle) m_manager->m_hDatabase, 
+                   m_lIndex, &entry);
     
     //entry has period in it
     wxString sCurrentExtension = wxMacMakeStringFromPascal(entry.extension);
@@ -286,10 +284,9 @@ bool wxFileTypeImpl::GetMimeType(wxString *mimeType) const
         return false;
     
     ICMapEntry entry;
-    OSStatus status = ICGetMapEntry( (ICInstance) m_manager->m_hIC, 
-                                     (Handle) m_manager->m_hDatabase, 
-                                     m_lIndex, &entry);
-    wxASSERT( status == noErr );
+    ICGetMapEntry( (ICInstance) m_manager->m_hIC, 
+                   (Handle) m_manager->m_hDatabase, 
+                   m_lIndex, &entry);
     
     *mimeType = wxMacMakeStringFromPascal(entry.MIMEType);
     return true;
@@ -321,10 +318,9 @@ bool wxFileTypeImpl::GetDescription(wxString *desc) const
         return false;
     
     ICMapEntry entry;
-    OSStatus status = ICGetMapEntry( (ICInstance) m_manager->m_hIC, 
-                                     (Handle) m_manager->m_hDatabase, 
-                                     m_lIndex, &entry);
-    wxASSERT( status == noErr );
+    ICGetMapEntry( (ICInstance) m_manager->m_hIC, 
+                   (Handle) m_manager->m_hDatabase, 
+                   m_lIndex, &entry);
     
     *desc = wxString((char*)entry.entryName, wxConvLocal);
     return true;