summaryrefslogtreecommitdiff
path: root/src/plugins/cpptools/cpphoverhandler.cpp
diff options
context:
space:
mode:
authorEike Ziller <eike.ziller@qt.io>2019-01-24 14:17:10 +0100
committerEike Ziller <eike.ziller@qt.io>2019-01-28 09:50:11 +0000
commit4faefe7343627408ad4ba9dec62f07556687b1e2 (patch)
treed12d7384fca859518ee370e1c548b602ccc4fdf6 /src/plugins/cpptools/cpphoverhandler.cpp
parent4f8022888b076a371efd19b141e4f2faa041e6e9 (diff)
downloadqt-creator-4faefe7343627408ad4ba9dec62f07556687b1e2.tar.gz
CppHoverHandler: Remove unused function
Change-Id: I76aad25e16424e0d0dad16732b7562a90819c407 Reviewed-by: David Schulz <david.schulz@qt.io> Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
Diffstat (limited to 'src/plugins/cpptools/cpphoverhandler.cpp')
-rw-r--r--src/plugins/cpptools/cpphoverhandler.cpp27
1 files changed, 0 insertions, 27 deletions
diff --git a/src/plugins/cpptools/cpphoverhandler.cpp b/src/plugins/cpptools/cpphoverhandler.cpp
index 752f50725b..341899b5d5 100644
--- a/src/plugins/cpptools/cpphoverhandler.cpp
+++ b/src/plugins/cpptools/cpphoverhandler.cpp
@@ -42,33 +42,6 @@ using namespace TextEditor;
namespace CppTools {
-QString CppHoverHandler::tooltipTextForHelpItem(const HelpItem &helpItem)
-{
- // If Qt is built with a namespace, we still show the tip without it, as
- // it is in the docs and for consistency with the doc extraction mechanism.
- const HelpItem::Category category = helpItem.category();
- const QString &contents = helpItem.extractContent(false);
- if (!contents.isEmpty()) {
- if (category == HelpItem::ClassOrNamespace)
- return helpItem.helpId() + contents;
- else
- return contents;
- } else if (category == HelpItem::Typedef ||
- category == HelpItem::Enum ||
- category == HelpItem::ClassOrNamespace) {
- // This approach is a bit limited since it cannot be used for functions
- // because the help id doesn't really help in that case.
- QString prefix;
- if (category == HelpItem::Typedef)
- prefix = QLatin1String("typedef ");
- else if (category == HelpItem::Enum)
- prefix = QLatin1String("enum ");
- return prefix + helpItem.helpId();
- }
-
- return QString();
-}
-
void CppHoverHandler::identifyMatch(TextEditorWidget *editorWidget, int pos, ReportPriority report)
{
Utils::ExecuteOnDestruction reportPriority([this, report](){ report(priority()); });