diff options
author | Caolán McNamara <caolanm@redhat.com> | 2011-08-18 21:00:07 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2011-08-19 09:30:43 +0100 |
commit | 671615786f1bd832bfd612dd3b4204e78de1e073 (patch) | |
tree | 5f7c62d583986ce5ed7a6150fbfb8e63547bce03 /sfx2 | |
parent | 7502d401de8a74b05ac7bcf0abab73ed87b53be6 (diff) |
branch is unconditional, remove dead alternative
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/source/bastyp/sfxhtml.cxx | 24 |
1 files changed, 1 insertions, 23 deletions
diff --git a/sfx2/source/bastyp/sfxhtml.cxx b/sfx2/source/bastyp/sfxhtml.cxx index bc33faba52db..78e29be661cf 100644 --- a/sfx2/source/bastyp/sfxhtml.cxx +++ b/sfx2/source/bastyp/sfxhtml.cxx @@ -253,29 +253,7 @@ void SfxHTMLParser::StartFileDownload( const String& rURL, int nToken, pSh->RegisterTransfer( *pDLMedium ); } - // Push Download (Note: Can also be synchronous). - if ( sal_True /*pMedium->GetDoneLink() == Link()*/ ) - pDLMedium->DownLoad(); - else - { - // Set Downloading-Flag to TRUE. When we get into the Pending-status - // we will then also have Data-Available-Links. - SetDownloadingFile( sal_True ); - pDLMedium->DownLoad( STATIC_LINK( this, SfxHTMLParser, FileDownloadDone ) ); - - // If the Downloading-Flag is still set downloading will be done - // asynchronously. We will go into Pedning-status and wait there. - // As long as we are there all calls to the Data-Link Avaialble are - // locked. - if( IsDownloadingFile() ) - { - // Unfreeze the current state and go into the Pending-Status. - // When the download is completed or aborted, a Continue with - // the transfer token will be pushed by passedNewDataRead. - SaveState( nToken ); - eState = SVPAR_PENDING; - } - } + pDLMedium->DownLoad(); } sal_Bool SfxHTMLParser::FinishFileDownload( String& rStr ) |