JAL-3829 removed unneeded attribute in FTS core
authorJim Procter <j.procter@dundee.ac.uk>
Mon, 23 Aug 2021 16:43:20 +0000 (17:43 +0100)
committerJim Procter <j.procter@dundee.ac.uk>
Mon, 30 Aug 2021 11:17:32 +0000 (12:17 +0100)
src/jalview/fts/core/FTSRestResponse.java
src/jalview/fts/service/threedbeacons/TDBeaconsFTSRestClient.java

index 66db2a0..ae50233 100644 (file)
@@ -42,8 +42,6 @@ public class FTSRestResponse
 {
   private int numberOfItemsFound;
   
-  private Long sequenceLength;
-
   private String responseTime;
 
   private Collection<FTSData> searchSummary;
@@ -77,14 +75,6 @@ public class FTSRestResponse
   {
     this.searchSummary = searchSummary;
   }
-  
-  public long getSequenceLength() {
-    return sequenceLength;
-  }
-  
-  public void setSequenceLength(Long seqLength) {
-    this.sequenceLength = seqLength;
-  }
 
   /**
    * Convenience method to obtain a Table model for a given summary List based
index 9c6f45a..b55d9b1 100644 (file)
@@ -153,12 +153,9 @@ public class TDBeaconsFTSRestClient extends FTSRestClient
       }
       
       Object uniprot_entry = jsonObj.get("uniprot_entry"); 
-      Long seqLength = (Long) ((Map<String, Object>) jsonObj.get("uniprot_entry")).get("sequence_length");
-      //System.out.println(uniprot_entry);
-      //System.out.println(jsonObj);
-      //System.out.println("seqLenght :" + seqLength);
-      
-      //Map<String, Object> tdbResponse = (Map<String, Object>) jsonObj.get("structures");
+      // TODO: decide if anything from uniprot_entry needs to be reported via the FTSRestResponse object
+      // Arnaud added seqLength = (Long) ((Map<String, Object>) jsonObj.get("uniprot_entry")).get("sequence_length");
+
       List<Object> structures = (List<Object>) jsonObj.get("structures");
       result = new ArrayList<>();
       
@@ -168,13 +165,10 @@ public class TDBeaconsFTSRestClient extends FTSRestClient
         Map<String, Object> structure = (Map<String, Object>) strucIter.next();
         result.add(getFTSData(structure, tdbRestRequest));
         numFound++;
-        //System.out.println(structure);
       }
       
-      //System.out.println("1 : " + structures.get(1));
       searchResult.setNumberOfItemsFound(numFound); 
       searchResult.setSearchSummary(result);
-      searchResult.setSequenceLength(seqLength);
         
     } catch (ParseException e)
     {