File tree 4 files changed +5
-25
lines changed
posthog/src/main/java/com/posthog
posthog-android/src/test/java/com/posthog/android
4 files changed +5
-25
lines changed Original file line number Diff line number Diff line change @@ -127,8 +127,4 @@ public class PostHogFake : PostHogInterface {
127
127
override fun getSessionId (): UUID ? {
128
128
return null
129
129
}
130
-
131
- override fun <T : PostHogConfig > getConfig (): T ? {
132
- return null
133
- }
134
130
}
Original file line number Diff line number Diff line change @@ -934,9 +934,5 @@ public class PostHog private constructor(
934
934
override fun getSessionId (): UUID ? {
935
935
return shared.getSessionId()
936
936
}
937
-
938
- override fun <T : PostHogConfig > getConfig (): T ? {
939
- return shared.getConfig()
940
- }
941
937
}
942
938
}
Original file line number Diff line number Diff line change @@ -49,7 +49,4 @@ public interface PostHogCoreInterface {
49
49
* Enables or disables the debug mode
50
50
*/
51
51
public fun debug (enable : Boolean = true)
52
-
53
- @PostHogInternal
54
- public fun <T : PostHogConfig > getConfig (): T ?
55
52
}
Original file line number Diff line number Diff line change @@ -360,12 +360,12 @@ public open class PostHogStateless protected constructor(
360
360
361
361
protected fun hasPersonProcessing (): Boolean {
362
362
return ! (
363
- config?.personProfiles == PersonProfiles .NEVER ||
364
- (
365
- config?.personProfiles == PersonProfiles .IDENTIFIED_ONLY &&
366
- ! isPersonProcessingEnabled
363
+ config?.personProfiles == PersonProfiles .NEVER ||
364
+ (
365
+ config?.personProfiles == PersonProfiles .IDENTIFIED_ONLY &&
366
+ ! isPersonProcessingEnabled
367
+ )
367
368
)
368
- )
369
369
}
370
370
371
371
protected fun requirePersonProcessing (
@@ -483,11 +483,6 @@ public open class PostHogStateless protected constructor(
483
483
config?.debug = enable
484
484
}
485
485
486
- override fun <T : PostHogConfig > getConfig (): T ? {
487
- @Suppress(" UNCHECKED_CAST" )
488
- return config as ? T
489
- }
490
-
491
486
public companion object : PostHogStatelessInterface {
492
487
private var shared: PostHogStatelessInterface = PostHogStateless ()
493
488
private var defaultSharedInstance = shared
@@ -606,9 +601,5 @@ public open class PostHogStateless protected constructor(
606
601
override fun debug (enable : Boolean ) {
607
602
shared.debug(enable)
608
603
}
609
-
610
- override fun <T : PostHogConfig > getConfig (): T ? {
611
- return shared.getConfig()
612
- }
613
604
}
614
605
}
You can’t perform that action at this time.
0 commit comments