From 408a347d80f59b4127b044b9da1a9c15783cf34d Mon Sep 17 00:00:00 2001 From: Jan-Arve Saether Date: Thu, 19 Jan 2012 11:26:03 +0100 Subject: Cleanup: No need to have two code paths that both return Unrelated. QAccessibleInterface::relatedTo() does the job for us already. Change-Id: I816022041e38c5f9dd742df1c4b9ca61b8d6a186 Reviewed-by: Frederik Gladhorn --- src/gui/accessible/qaccessibleobject.cpp | 10 ---------- src/gui/accessible/qaccessibleobject.h | 1 - 2 files changed, 11 deletions(-) diff --git a/src/gui/accessible/qaccessibleobject.cpp b/src/gui/accessible/qaccessibleobject.cpp index 313bff35a5..da77a8a559 100644 --- a/src/gui/accessible/qaccessibleobject.cpp +++ b/src/gui/accessible/qaccessibleobject.cpp @@ -224,16 +224,6 @@ int QAccessibleApplication::indexOfChild(const QAccessibleInterface *child) cons return tlw.indexOf(child->object()); } -/*! \reimp */ -QAccessible::Relation QAccessibleApplication::relationTo(const QAccessibleInterface *other) const -{ - QObject *o = other ? other->object() : 0; - if (!o) - return QAccessible::Unrelated; - - return QAccessible::Unrelated; -} - QAccessibleInterface *QAccessibleApplication::parent() const { return 0; diff --git a/src/gui/accessible/qaccessibleobject.h b/src/gui/accessible/qaccessibleobject.h index 58b95baffa..11e60537b9 100644 --- a/src/gui/accessible/qaccessibleobject.h +++ b/src/gui/accessible/qaccessibleobject.h @@ -86,7 +86,6 @@ public: // relations int childCount() const; int indexOfChild(const QAccessibleInterface*) const; - QAccessible::Relation relationTo(const QAccessibleInterface *other) const; // navigation QAccessibleInterface *parent() const; -- cgit v1.2.3