summaryrefslogtreecommitdiff
path: root/sfx2/source/doc/doctemplates.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sfx2/source/doc/doctemplates.cxx')
-rw-r--r--sfx2/source/doc/doctemplates.cxx4
1 files changed, 0 insertions, 4 deletions
diff --git a/sfx2/source/doc/doctemplates.cxx b/sfx2/source/doc/doctemplates.cxx
index ecceed91d4c6..b96a3c7c7781 100644
--- a/sfx2/source/doc/doctemplates.cxx
+++ b/sfx2/source/doc/doctemplates.cxx
@@ -697,8 +697,6 @@ sal_Bool SfxDocTplService_Impl::getTitleFromURL( const OUString& rURL, OUString&
}
catch ( Exception& )
{
- // the document is not a StarOffice document
- return sal_False;
}
try
@@ -2035,7 +2033,6 @@ sal_Bool SfxDocTplService_Impl::addTemplate( const OUString& rGroupName,
// Get the content type
OUString aTitle, aType, aTargetURL2, aFullName;
- // only StarOffice documents are acceptable
sal_Bool bDocHasTitle = sal_False;
if( !getTitleFromURL( rSourceURL, aTitle, aType, bDocHasTitle ) )
return sal_False;
@@ -2594,7 +2591,6 @@ void SfxDocTplService_Impl::addFsysGroup( GroupList_Impl& rList,
if ( aChildTitle.compareToAscii( "sfx.tlx" ) == 0 || aChildTitle == "groupuinames.xml" )
continue;
- // only StarOffice templates are accepted
sal_Bool bDocHasTitle = sal_False;
if( !getTitleFromURL( aTargetURL, aChildTitle, aType, bDocHasTitle ) )
continue;