summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2011-08-17 15:31:50 +0100
committerCaolán McNamara <caolanm@redhat.com>2011-08-17 15:50:31 +0100
commit3aeeb8fb5d5342b73f1b2f8dde9f270b46bd94c2 (patch)
tree3b4998608ef3385eb5d7f383546734417a7c06d0 /sfx2
parentf0bb814a7c2a513602dbf399889d622e569b98a2 (diff)
remove freshly unused code
Diffstat (limited to 'sfx2')
-rw-r--r--sfx2/source/doc/doctempl.cxx50
1 files changed, 0 insertions, 50 deletions
diff --git a/sfx2/source/doc/doctempl.cxx b/sfx2/source/doc/doctempl.cxx
index a1fb5fc73fe5..378d489906dc 100644
--- a/sfx2/source/doc/doctempl.cxx
+++ b/sfx2/source/doc/doctempl.cxx
@@ -200,7 +200,6 @@ public:
DocTempl_EntryData_Impl* GetEntry( size_t nIndex ) const;
DocTempl_EntryData_Impl* GetEntry( const OUString& rName ) const;
- DocTempl_EntryData_Impl* GetByTargetURL( const OUString& rName ) const;
const OUString& GetTitle() const { return maTitle; }
const OUString& GetTargetURL();
@@ -265,7 +264,6 @@ public:
{ return maRegions.size(); }
RegionData_Impl* GetRegion( const OUString& rName ) const;
RegionData_Impl* GetRegion( size_t nIndex ) const;
- size_t GetRegionPos( const OUString& rTitle, sal_Bool& rFound ) const;
sal_Bool GetTitleFromURL( const OUString& rURL, OUString& aTitle );
sal_Bool InsertRegion( RegionData_Impl *pData, size_t nPos = size_t(-1) );
@@ -1881,18 +1879,6 @@ DocTempl_EntryData_Impl* RegionData_Impl::GetEntry( const OUString& rName ) cons
}
// -----------------------------------------------------------------------
-DocTempl_EntryData_Impl* RegionData_Impl::GetByTargetURL( const OUString& rName ) const
-{
- for ( size_t i = 0, n = maEntries.size(); i < n; ++i )
- {
- DocTempl_EntryData_Impl *pEntry = maEntries[ i ];
- if ( pEntry->GetTargetURL() == rName )
- return pEntry;
- }
- return NULL;
-}
-
-// -----------------------------------------------------------------------
DocTempl_EntryData_Impl* RegionData_Impl::GetEntry( size_t nIndex ) const
{
if ( nIndex < maEntries.size() )
@@ -2140,42 +2126,6 @@ void SfxDocTemplate_Impl::ReInitFromComponent()
}
// -----------------------------------------------------------------------
-size_t SfxDocTemplate_Impl::GetRegionPos( const OUString& rTitle, sal_Bool& rFound ) const
-{
- int nCompVal = 1;
- size_t nStart = 0;
- size_t nEnd = maRegions.size() - 1;
- size_t nMid = 0;
-
- RegionData_Impl* pMid;
-
- while ( nCompVal && ( nStart <= nEnd ) )
- {
- nMid = ( nEnd - nStart ) / 2 + nStart;
- pMid = maRegions[ nMid ];
-
- nCompVal = pMid->Compare( rTitle );
-
- if ( nCompVal < 0 ) // pMid < pData
- nStart = nMid + 1;
- else
- nEnd = nMid - 1;
- }
-
- if ( nCompVal == 0 )
- rFound = sal_True;
- else
- {
- if ( nCompVal < 0 ) // pMid < pData
- nMid++;
-
- rFound = sal_False;
- }
-
- return nMid;
-}
-
-// -----------------------------------------------------------------------
sal_Bool SfxDocTemplate_Impl::InsertRegion( RegionData_Impl *pNew, size_t nPos )
{
::osl::MutexGuard aGuard( maMutex );