Kaydet (Commit) 36bd6f9a authored tarafından Noel Grandin's avatar Noel Grandin

remove unused Invalid enumerator from ShapeProperty enum

Change-Id: I27f1d50cc67210ca976fd97beb9dc71b975ac98d
Reviewed-on: https://gerrit.libreoffice.org/34240Reviewed-by: 's avatarNoel Grandin <noel.grandin@collabora.co.uk>
Tested-by: 's avatarNoel Grandin <noel.grandin@collabora.co.uk>
üst 2b70fb58
...@@ -34,10 +34,7 @@ namespace svx ...@@ -34,10 +34,7 @@ namespace svx
// text doc shape properties // text doc shape properties
TextDocAnchor, TextDocAnchor,
// spreadsheet doc shape properties // spreadsheet doc shape properties
CalcDocAnchor, CalcDocAnchor
// invalid, not to be used
Invalid
}; };
} }
......
...@@ -102,7 +102,6 @@ namespace svx ...@@ -102,7 +102,6 @@ namespace svx
void PropertyChangeNotifier::registerProvider(const ShapeProperty _eProperty, const std::shared_ptr<IPropertyValueProvider>& _rProvider) void PropertyChangeNotifier::registerProvider(const ShapeProperty _eProperty, const std::shared_ptr<IPropertyValueProvider>& _rProvider)
{ {
ENSURE_OR_THROW( _eProperty != ShapeProperty::Invalid, "Illegal ShapeProperty value!" );
ENSURE_OR_THROW( !!_rProvider, "NULL factory not allowed." ); ENSURE_OR_THROW( !!_rProvider, "NULL factory not allowed." );
OSL_ENSURE( m_xData->m_aProviders.find( _eProperty ) == m_xData->m_aProviders.end(), OSL_ENSURE( m_xData->m_aProviders.find( _eProperty ) == m_xData->m_aProviders.end(),
...@@ -113,8 +112,6 @@ namespace svx ...@@ -113,8 +112,6 @@ namespace svx
void PropertyChangeNotifier::notifyPropertyChange( const ShapeProperty _eProperty ) const void PropertyChangeNotifier::notifyPropertyChange( const ShapeProperty _eProperty ) const
{ {
ENSURE_OR_THROW( _eProperty != ShapeProperty::Invalid, "Illegal ShapeProperty value!" );
PropertyProviders::const_iterator provPos = m_xData->m_aProviders.find( _eProperty ); PropertyProviders::const_iterator provPos = m_xData->m_aProviders.find( _eProperty );
OSL_ENSURE( provPos != m_xData->m_aProviders.end(), "PropertyChangeNotifier::notifyPropertyChange: no factory!" ); OSL_ENSURE( provPos != m_xData->m_aProviders.end(), "PropertyChangeNotifier::notifyPropertyChange: no factory!" );
if ( provPos == m_xData->m_aProviders.end() ) if ( provPos == m_xData->m_aProviders.end() )
......
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