From 9456c3b5ef9577f4456de73854b8710fc10428b6 Mon Sep 17 00:00:00 2001 From: Ben Soares Date: Wed, 28 Jun 2023 14:30:05 +0100 Subject: [PATCH] JAL-4001 remove headless code from analytics --- src/jalview/analytics/Plausible.java | 5 ----- src/jalview/bin/Cache.java | 9 --------- 2 files changed, 14 deletions(-) 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(' ', '+'); /* } -- 1.7.10.2