summaryrefslogtreecommitdiff
path: root/desktop/source/deployment
diff options
context:
space:
mode:
Diffstat (limited to 'desktop/source/deployment')
-rw-r--r--desktop/source/deployment/gui/dp_gui_extlistbox.cxx9
-rw-r--r--desktop/source/deployment/gui/dp_gui_extlistbox.hxx5
2 files changed, 0 insertions, 14 deletions
diff --git a/desktop/source/deployment/gui/dp_gui_extlistbox.cxx b/desktop/source/deployment/gui/dp_gui_extlistbox.cxx
index 5d519344c52d..025b59ade6e1 100644
--- a/desktop/source/deployment/gui/dp_gui_extlistbox.cxx
+++ b/desktop/source/deployment/gui/dp_gui_extlistbox.cxx
@@ -289,15 +289,6 @@ sal_Int32 ExtensionBox_Impl::getSelIndex() const
}
-void ExtensionBox_Impl::checkIndex( sal_Int32 nIndex ) const
-{
- if ( nIndex < 0 )
- throw lang::IllegalArgumentException( "The list index starts with 0",0, 0 );
- if ( static_cast< sal_uInt32 >( nIndex ) >= m_vEntries.size())
- throw lang::IllegalArgumentException( "There is no element at the provided position. The position exceeds the number of available list entries",0, 0 );
-}
-
-
// Title + description
void ExtensionBox_Impl::CalcActiveHeight( const long nPos )
{
diff --git a/desktop/source/deployment/gui/dp_gui_extlistbox.hxx b/desktop/source/deployment/gui/dp_gui_extlistbox.hxx
index b6db33572548..eaf4f401554c 100644
--- a/desktop/source/deployment/gui/dp_gui_extlistbox.hxx
+++ b/desktop/source/deployment/gui/dp_gui_extlistbox.hxx
@@ -165,11 +165,6 @@ class ExtensionBox_Impl : public ::svt::IExtensionListBox
DECL_DLLPRIVATE_LINK_TYPED( ScrollHdl, ScrollBar*, void );
- //Index starts with 1.
- //Throws an css::lang::IllegalArgumentException, when the index is invalid.
- void checkIndex(sal_Int32 pos) const;
-
-
void Init();
public:
explicit ExtensionBox_Impl(vcl::Window* pParent);