This is an automated email from the ASF dual-hosted git repository.

yasithdev pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/airavata.git


The following commit(s) were added to refs/heads/master by this push:
     new dfb11c866d Remove dead research-service methods (#667)
dfb11c866d is described below

commit dfb11c866d45ee0c8442a633f341b1f7a3ed0564
Author: Yasith Jayawardana <[email protected]>
AuthorDate: Sat Jun 13 00:50:24 2026 -0400

    Remove dead research-service methods (#667)
    
    Three unused public methods with zero callers across both repos:
    - AgentManagementService.terminateApplication(gatewayId, experimentId)
    - AiravataService.getUserProfile(authzToken, userId, gatewayId) — the 1-arg
      getUserProfile(userId) is the live overload (used by 
ResearchResourceService)
    - AgentExperimentService.projectService() accessor — the projectService 
field
      stays (read by getProjects); only the unused accessor is removed
---
 .../airavata/research/service/AgentExperimentService.java    |  4 ----
 .../airavata/research/service/AgentManagementService.java    | 12 ------------
 .../apache/airavata/research/service/AiravataService.java    |  8 --------
 3 files changed, 24 deletions(-)

diff --git 
a/airavata-api/research-service/src/main/java/org/apache/airavata/research/service/AgentExperimentService.java
 
b/airavata-api/research-service/src/main/java/org/apache/airavata/research/service/AgentExperimentService.java
index 8722cadd16..459c26d81a 100644
--- 
a/airavata-api/research-service/src/main/java/org/apache/airavata/research/service/AgentExperimentService.java
+++ 
b/airavata-api/research-service/src/main/java/org/apache/airavata/research/service/AgentExperimentService.java
@@ -64,10 +64,6 @@ public class AgentExperimentService {
         return experimentService;
     }
 
-    public ProjectService projectService() {
-        return projectService;
-    }
-
     public GroupResourceProfileProvider groupResourceProfileService() {
         return groupResourceProfileService;
     }
diff --git 
a/airavata-api/research-service/src/main/java/org/apache/airavata/research/service/AgentManagementService.java
 
b/airavata-api/research-service/src/main/java/org/apache/airavata/research/service/AgentManagementService.java
index 5b8088d051..9b241e9d30 100644
--- 
a/airavata-api/research-service/src/main/java/org/apache/airavata/research/service/AgentManagementService.java
+++ 
b/airavata-api/research-service/src/main/java/org/apache/airavata/research/service/AgentManagementService.java
@@ -204,18 +204,6 @@ public class AgentManagementService {
         }
     }
 
-    public void terminateApplication(String gatewayId, String experimentId) {
-        try {
-            LOGGER.info("Terminating the application with experiment Id: {}", 
experimentId);
-            RequestContext ctx = agentExperimentService.requestContext();
-            
agentExperimentService.experimentService().terminateExperiment(ctx, 
experimentId);
-        } catch (Exception e) {
-            LOGGER.error("Error while terminating the application with the 
experiment Id: {}", experimentId);
-            throw new RuntimeException(
-                    "Error while terminating the application with the 
experiment Id: " + experimentId, e);
-        }
-    }
-
     public ProcessModel getEnvProcessModel(String expId) {
         try {
             LOGGER.info("Extracting the process model for experiment id: {}", 
expId);
diff --git 
a/airavata-api/research-service/src/main/java/org/apache/airavata/research/service/AiravataService.java
 
b/airavata-api/research-service/src/main/java/org/apache/airavata/research/service/AiravataService.java
index 45e09f4fb5..7233226c70 100644
--- 
a/airavata-api/research-service/src/main/java/org/apache/airavata/research/service/AiravataService.java
+++ 
b/airavata-api/research-service/src/main/java/org/apache/airavata/research/service/AiravataService.java
@@ -44,12 +44,4 @@ public class AiravataService {
         }
         return profile;
     }
-
-    public UserProfile getUserProfile(String authzToken, String userId, String 
gatewayId) {
-        UserProfile profile = 
userProfileProvider.getUserProfileByIdAndGateWay(userId, gatewayId);
-        if (profile == null) {
-            throw new RuntimeException("User profile not found for id: " + 
userId + " in gateway: " + gatewayId);
-        }
-        return profile;
-    }
 }

Reply via email to