Cleanup: No need to have two code paths that both return Unrelated.
authorJan-Arve Saether <jan-arve.saether@nokia.com>
Thu, 19 Jan 2012 10:26:03 +0000 (11:26 +0100)
committerQt by Nokia <qt-info@nokia.com>
Thu, 19 Jan 2012 11:58:26 +0000 (12:58 +0100)
QAccessibleInterface::relatedTo() does the job for us already.

Change-Id: I816022041e38c5f9dd742df1c4b9ca61b8d6a186
Reviewed-by: Frederik Gladhorn <frederik.gladhorn@nokia.com>
src/gui/accessible/qaccessibleobject.cpp
src/gui/accessible/qaccessibleobject.h

index 313bff3..da77a8a 100644 (file)
@@ -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;
index 58b95ba..11e6053 100644 (file)
@@ -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;