Skip to content

Commit c903eb8

Browse files
author
Bruno Bergher
committed
Removes unnecessary Telemetry code
1 parent fdb92d9 commit c903eb8

File tree

1 file changed

+0
-22
lines changed

1 file changed

+0
-22
lines changed

webview-ui/src/utils/TelemetryClient.ts

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -42,28 +42,6 @@ class TelemetryClient {
4242
}
4343
}
4444
}
45-
46-
public setPeopleProperty(propertyName: string, value: any) {
47-
if (TelemetryClient.telemetryEnabled) {
48-
try {
49-
posthog.people.set({ [propertyName]: value })
50-
} catch (_error) {
51-
// Silently fail if there's an error setting a property.
52-
}
53-
}
54-
}
55-
56-
public getPeopleProperty(propertyName: string): any {
57-
if (TelemetryClient.telemetryEnabled) {
58-
try {
59-
return posthog.get_property(propertyName)
60-
} catch (_error) {
61-
// Silently fail if there's an error getting a property.
62-
return null
63-
}
64-
}
65-
return null
66-
}
6745
}
6846

6947
export const telemetryClient = TelemetryClient.getInstance()

0 commit comments

Comments
 (0)