Kaydet (Commit) a0ed677f authored tarafından Stephan Bergmann's avatar Stephan Bergmann

Remove unnecessary mutex

CMimeContentType::m_ParameterMap isn't modified after construction

Change-Id: Ib3dbfbd4212ed0d7e8a9f29c655f935d3fc4f1bf
Reviewed-on: https://gerrit.libreoffice.org/61698
Tested-by: Jenkins
Reviewed-by: 's avatarStephan Bergmann <sbergman@redhat.com>
üst 2a20bdbb
......@@ -28,7 +28,6 @@
using namespace com::sun::star::uno;
using namespace com::sun::star::container;
using namespace std;
using namespace osl;
CMimeContentType::CMimeContentType( const OUString& aCntType )
{
......@@ -52,8 +51,6 @@ OUString SAL_CALL CMimeContentType::getFullMediaType( )
Sequence< OUString > SAL_CALL CMimeContentType::getParameters( )
{
MutexGuard aGuard( m_aMutex );
Sequence< OUString > seqParams;
map< OUString, OUString >::iterator iter;
......@@ -70,7 +67,6 @@ Sequence< OUString > SAL_CALL CMimeContentType::getParameters( )
sal_Bool SAL_CALL CMimeContentType::hasParameter( const OUString& aName )
{
MutexGuard aGuard( m_aMutex );
return ( m_ParameterMap.end( ) != m_ParameterMap.find( aName.toAsciiLowerCase() ) );
}
......@@ -78,8 +74,6 @@ OUString SAL_CALL CMimeContentType::getParameterValue( const OUString& aName )
{
auto const lower = aName.toAsciiLowerCase();
MutexGuard aGuard( m_aMutex );
if ( !hasParameter( lower ) )
throw NoSuchElementException( );
......
......@@ -51,7 +51,6 @@ private:
void init( const OUString& aCntType );
private:
::osl::Mutex m_aMutex;
OUString m_MediaType;
OUString m_MediaSubtype;
std::map< OUString, OUString > m_ParameterMap;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment