remove non-sensical OSL_ENSURE

That started as
OSL_ENSURE( (nTabId == 0) || (getFilterType() == FILTER_OOXML) || (getBiff() == BIFF8),
then with c4cb83504f became
OSL_ENSURE( (nTabId == 0) || (getBiff() == BIFF8),
then with e73c4d5013 became
OSL_ENSURE( nTabId == 0,
which makes no sense anymore and gets hit in ~every call.

Change-Id: I5dfe3dd53310ab2f977ad574acb1ec9874775020
This commit is contained in:
Eike Rathke
2016-10-27 11:59:59 +02:00
parent 7f45ebf7fa
commit d12c7aee5c

View File

@@ -435,8 +435,6 @@ sal_Int32 ExternalLink::getDocumentLinkIndex() const
sal_Int32 ExternalLink::getSheetCacheIndex( sal_Int32 nTabId ) const
{
OSL_ENSURE( meLinkType == LINKTYPE_EXTERNAL, "ExternalLink::getSheetCacheIndex - invalid link type" );
OSL_ENSURE( nTabId == 0,
"ExternalLink::getSheetCacheIndex - invalid sheet index" );
return ContainerHelper::getVectorElement( maSheetCaches, nTabId, -1 );
}