diff --git a/app/src/main/java/org/dhis2/usescases/searchTrackEntity/SearchRepositoryImpl.java b/app/src/main/java/org/dhis2/usescases/searchTrackEntity/SearchRepositoryImpl.java index bd8763a0d3..8c89241eb2 100644 --- a/app/src/main/java/org/dhis2/usescases/searchTrackEntity/SearchRepositoryImpl.java +++ b/app/src/main/java/org/dhis2/usescases/searchTrackEntity/SearchRepositoryImpl.java @@ -62,7 +62,6 @@ import org.hisp.dhis.android.core.relationship.Relationship; import org.hisp.dhis.android.core.relationship.RelationshipItem; import org.hisp.dhis.android.core.relationship.RelationshipItemTrackedEntityInstance; -import org.hisp.dhis.android.core.relationship.RelationshipType; import org.hisp.dhis.android.core.settings.AnalyticsDhisVisualizationsGroup; import org.hisp.dhis.android.core.settings.ProgramConfigurationSetting; import org.hisp.dhis.android.core.trackedentity.TrackedEntityAttribute; @@ -418,9 +417,6 @@ private void setRelationshipsInfo(@NonNull SearchTeiModel searchTeiModel, Progra ); for (Relationship relationship : relationships) { if (relationship.from().trackedEntityInstance() != null) { - RelationshipType relationshipType = - d2.relationshipModule().relationshipTypes().uid(relationship.relationshipType()).blockingGet(); - String relationshipTEIUid; RelationshipDirection direction; if (!searchTeiModel.getTei().uid().equals(relationship.from().trackedEntityInstance().trackedEntityInstance())) {