From: Ben Soares Date: Wed, 28 Jun 2023 13:30:05 +0000 (+0100) Subject: JAL-4001 remove headless code from analytics X-Git-Tag: Release_2_11_2_7~2^2~2 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=9456c3b5ef9577f4456de73854b8710fc10428b6;p=jalview.git JAL-4001 remove headless code from analytics --- diff --git a/src/jalview/analytics/Plausible.java b/src/jalview/analytics/Plausible.java index b031c47..1c9f254 100644 --- a/src/jalview/analytics/Plausible.java +++ b/src/jalview/analytics/Plausible.java @@ -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 diff --git a/src/jalview/bin/Cache.java b/src/jalview/bin/Cache.java index 63d4223..7af926b 100755 --- a/src/jalview/bin/Cache.java +++ b/src/jalview/bin/Cache.java @@ -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(' ', '+'); /* }