From 50e1cbfbd00979650ad498068bb89673eeffe2d7 Mon Sep 17 00:00:00 2001 From: andresmr Date: Wed, 18 Dec 2024 15:31:41 +0100 Subject: [PATCH] fix: [ANDROAPP-6535] remove code smells Signed-off-by: andresmr --- .../usescases/searchTrackEntity/SearchRepositoryImpl.java | 4 ---- gradle/libs.versions.toml | 2 +- 2 files changed, 1 insertion(+), 5 deletions(-) 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())) { diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index 660f658fc4..089a5d6e6b 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -8,7 +8,7 @@ kotlin = '2.0.20' hilt = '2.47' jacoco = '0.8.10' designSystem = "0.4.1-SNAPSHOT" -dhis2sdk = "1.11.1-20241218.080719-10" +dhis2sdk = "1.11.1-SNAPSHOT" ruleEngine = "3.0.0" expressionParser = "1.1.0" appcompat = "1.6.1"