JAL-4001 remove headless code from analytics
authorBen Soares <b.soares@dundee.ac.uk>
Wed, 28 Jun 2023 13:30:05 +0000 (14:30 +0100)
committerBen Soares <b.soares@dundee.ac.uk>
Wed, 28 Jun 2023 13:30:05 +0000 (14:30 +0100)
src/jalview/analytics/Plausible.java
src/jalview/bin/Cache.java

index b031c47..1c9f254 100644 (file)
@@ -22,7 +22,6 @@ import java.util.Map;
 
 import jalview.bin.Cache;
 import jalview.bin.Console;
-import jalview.bin.Jalview;
 import jalview.util.ChannelProperties;
 import jalview.util.HttpUtils;
 
@@ -146,10 +145,6 @@ public class Plausible
     if (sendDefaultProps)
     {
       props.putAll(defaultProps);
-      if (Jalview.isHeadlessMode())
-      {
-        props.put("headless", "true");
-      }
     }
 
     // add (and overwrite with) the passed in props
index 63d4223..7af926b 100755 (executable)
@@ -887,11 +887,6 @@ public class Cache
    */
   public static void initAnalytics()
   {
-    initAnalytics(false);
-  }
-
-  public static void initAnalytics(boolean headless)
-  {
     Plausible.setEnabled(true);
 
     String appName = ChannelProperties.getProperty("app_name") + " Desktop";
@@ -911,10 +906,6 @@ public class Cache
     pathParts.add(appName);
     pathParts.add(version);
     pathParts.add(APPLICATION_STARTED);
-    if (headless)
-    {
-      pathParts.add("headless");
-    }
     path = ("/" + String.join("/", pathParts)).replace(' ', '+');
     /*
     }