Periphery cleanup (#5893)

This commit is contained in:
Mauro
2026-07-20 11:16:11 +02:00
committed by GitHub
parent 175aca596e
commit 9093631f8b
275 changed files with 381 additions and 2268 deletions
@@ -57,7 +57,11 @@ class AnalyticsService: AnalyticsServiceProtocol {
MXLog.info("Started.")
}
func reset() {
/// Resets any IDs and event queues in the analytics client. This method should
/// be called on sign-out to ensure the next
/// account used isn't associated with the previous one.
/// Note: **MUST** be called before stopping PostHog or the reset is ignored.
private func reset() {
client.reset()
MXLog.info("Reset.")
}
@@ -37,12 +37,6 @@ protocol AnalyticsServiceProtocol: AnyObject {
/// Starts the analytics client if the user has opted in, otherwise does nothing.
func startIfEnabled()
/// Resets any IDs and event queues in the analytics client. This method should
/// be called on sign-out to maintain opt-in status, whilst ensuring the next
/// account used isn't associated with the previous one.
/// Note: **MUST** be called before stopping PostHog or the reset is ignored.
func reset()
/// Resets the consent state for analytics.
func resetConsentState()
@@ -101,10 +101,6 @@ class Signposter {
globalTags[tagName] = value
}
func removeGlobalTag(_ tagName: TagName) {
globalTags[tagName] = nil
}
// MARK: - Private
func sha512(_ string: String) -> String {