From 1567d3e3d1b51617d45fdab6f8d755e44a49b876 Mon Sep 17 00:00:00 2001 From: "Paul Gauthier (aider)" Date: Mon, 12 Aug 2024 20:41:59 -0700 Subject: [PATCH] fix: Remove duplicate get_or_create_uuid method --- aider/analytics.py | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/aider/analytics.py b/aider/analytics.py index dfef61aa9..642b347bb 100644 --- a/aider/analytics.py +++ b/aider/analytics.py @@ -59,20 +59,6 @@ class Analytics: "machine": platform.machine(), } - def get_or_create_uuid(self): - uuid_file = Path.home() / ".aider" / "caches" / "mixpanel.json" - uuid_file.parent.mkdir(parents=True, exist_ok=True) - - if uuid_file.exists(): - with open(uuid_file, "r") as f: - return json.load(f)["uuid"] - - new_uuid = str(uuid.uuid4()) - with open(uuid_file, "w") as f: - json.dump({"uuid": new_uuid}, f) - - return new_uuid - def event(self, event_name, main_model=None, **kwargs): if not self.mp and not self.logfile: return