From c02af6536973c465fe9148b4907314389fe5dba4 Mon Sep 17 00:00:00 2001 From: Ryan Norton Date: Sat, 16 Apr 2005 12:20:57 +0000 Subject: [PATCH] clean up release unused variable warnings git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33658 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/mac/carbon/mimetmac.cpp | 28 ++++++++++++---------------- 1 file changed, 12 insertions(+), 16 deletions(-) diff --git a/src/mac/carbon/mimetmac.cpp b/src/mac/carbon/mimetmac.cpp index 0c34efad85..ea5d87527a 100644 --- a/src/mac/carbon/mimetmac.cpp +++ b/src/mac/carbon/mimetmac.cpp @@ -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; -- 2.45.2