diff options
author | Volker Hilsheimer <volker.hilsheimer@qt.io> | 2020-05-07 09:30:16 +0200 |
---|---|---|
committer | Volker Hilsheimer <volker.hilsheimer@qt.io> | 2020-05-11 11:05:15 +0200 |
commit | 90210c8d28a90295ebbf37ef45b69924ed7f42d0 (patch) | |
tree | a67feb9140d069197bbcaf53fe28d71e4be255cd /src/widgets/widgets/qtextbrowser.cpp | |
parent | 219e7bafa278792f7bde110d24333fb60b555c12 (diff) |
Remove dead code from src/widgets
Code that's removed via QT_VERSION(6, 0, 0) check is already no
longer compiled.
Change-Id: I70865f330a6260ac2e9cf2770d599a5b6f7bb7d4
Reviewed-by: Jan Arve Sæther <jan-arve.saether@qt.io>
Diffstat (limited to 'src/widgets/widgets/qtextbrowser.cpp')
-rw-r--r-- | src/widgets/widgets/qtextbrowser.cpp | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/src/widgets/widgets/qtextbrowser.cpp b/src/widgets/widgets/qtextbrowser.cpp index dac7a9a608..af61dda1de 100644 --- a/src/widgets/widgets/qtextbrowser.cpp +++ b/src/widgets/widgets/qtextbrowser.cpp @@ -810,13 +810,6 @@ void QTextBrowser::reload() setSource(s, d->currentType); } -#if QT_VERSION < QT_VERSION_CHECK(6,0,0) -void QTextBrowser::setSource(const QUrl &url) -{ - setSource(url, QTextDocument::UnknownResource); -} -#endif - /*! Attempts to load the document at the given \a url with the specified \a type. @@ -832,14 +825,12 @@ void QTextBrowser::setSource(const QUrl &url, QTextDocument::ResourceType type) doSetSource(url, type); } -#if QT_VERSION >= QT_VERSION_CHECK(6,0,0) /*! Attempts to load the document at the given \a url with the specified \a type. setSource() calls doSetSource. In Qt 5, setSource(const QUrl &url) was virtual. In Qt 6, doSetSource() is virtual instead, so that it can be overridden in subclasses. */ -#endif void QTextBrowser::doSetSource(const QUrl &url, QTextDocument::ResourceType type) { Q_D(QTextBrowser); |