From: Ben Soares Date: Wed, 28 Jun 2023 13:28:33 +0000 (+0100) Subject: JAL-4001 remove headless code from analytics X-Git-Tag: Release_2_11_4_0~260^2~4 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=4fb4e63368e9a74e207c226739bde148acacd9cb;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 ef4a701..945b53b 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 7d329fd..5741908 100755 --- a/src/jalview/bin/Cache.java +++ b/src/jalview/bin/Cache.java @@ -959,11 +959,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"; @@ -983,10 +978,6 @@ public class Cache pathParts.add(appName); pathParts.add(version); pathParts.add(APPLICATION_STARTED); - if (headless) - { - pathParts.add("headless"); - } path = ("/" + String.join("/", pathParts)).replace(' ', '+'); /* }