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 <frederik.gladhorn@nokia.com>
This commit is contained in:
Jan-Arve Saether 2012-01-19 11:26:03 +01:00 committed by Qt by Nokia
parent a84d893bae
commit 408a347d80
2 changed files with 0 additions and 11 deletions

View 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;

View 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;