summaryrefslogtreecommitdiff
path: root/svtools
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2019-12-22 19:03:02 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2019-12-22 19:27:55 +0100
commit38d9e38981a8ade60bb627b00197ecd28fb9158e (patch)
tree85573acca3fe6eaf6ce9b3173a0dc3cdf30845f3 /svtools
parent1376f86f3fdfb80008687d8b5e8db2b5434b9d7e (diff)
loplugin:unusedfields
Change-Id: Ib2314f23efe953398ed0a5e88305842c812e18bb Reviewed-on: https://gerrit.libreoffice.org/85708 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svtools')
-rw-r--r--svtools/source/control/inettbc.cxx9
1 files changed, 0 insertions, 9 deletions
diff --git a/svtools/source/control/inettbc.cxx b/svtools/source/control/inettbc.cxx
index 60a827d172f4..0677c1f59292 100644
--- a/svtools/source/control/inettbc.cxx
+++ b/svtools/source/control/inettbc.cxx
@@ -1588,13 +1588,6 @@ bool SvtURLBox::PreNotify( NotifyEvent& rNEvt )
SetSelection( Selection( nLen, GetText().getLength() ) );
return true;
}
-
- if ( MatchesPlaceHolder( GetText() ) )
- {
- // set the selection so a key stroke will overwrite
- // the placeholder rather than edit it
- SetSelection( Selection( 0, GetText().getLength() ) );
- }
}
return ComboBox::PreNotify( rNEvt );
@@ -1643,8 +1636,6 @@ OUString SvtURLBox::GetURL()
::osl::MutexGuard aGuard( theSvtMatchContextMutex::get() );
OUString aText( GetText() );
- if ( MatchesPlaceHolder( aText ) )
- return aPlaceHolder;
// try to get the right case preserving URL from the list of URLs
for(std::vector<OUString>::iterator i = pImpl->aCompletions.begin(), j = pImpl->aURLs.begin(); i != pImpl->aCompletions.end() && j != pImpl->aURLs.end(); ++i, ++j)