Skip to content

Commit 5618a31

Browse files
committed
Remove deprecated reportFullDisplayed
1 parent acb5ad6 commit 5618a31

File tree

5 files changed

+0
-37
lines changed

5 files changed

+0
-37
lines changed

sentry/api/sentry.api

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -901,7 +901,6 @@ public abstract interface class io/sentry/IScopes {
901901
public abstract fun pushScope ()Lio/sentry/ISentryLifecycleToken;
902902
public abstract fun removeExtra (Ljava/lang/String;)V
903903
public abstract fun removeTag (Ljava/lang/String;)V
904-
public fun reportFullDisplayed ()V
905904
public abstract fun reportFullyDisplayed ()V
906905
public abstract fun setActiveSpan (Lio/sentry/ISpan;)V
907906
public abstract fun setExtra (Ljava/lang/String;Ljava/lang/String;)V
@@ -2370,7 +2369,6 @@ public final class io/sentry/Sentry {
23702369
public static fun pushScope ()Lio/sentry/ISentryLifecycleToken;
23712370
public static fun removeExtra (Ljava/lang/String;)V
23722371
public static fun removeTag (Ljava/lang/String;)V
2373-
public static fun reportFullDisplayed ()V
23742372
public static fun reportFullyDisplayed ()V
23752373
public static fun setCurrentHub (Lio/sentry/IHub;)Lio/sentry/ISentryLifecycleToken;
23762374
public static fun setCurrentScopes (Lio/sentry/IScopes;)Lio/sentry/ISentryLifecycleToken;

sentry/src/main/java/io/sentry/IScopes.java

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -657,14 +657,6 @@ void setSpanContext(
657657
*/
658658
void reportFullyDisplayed();
659659

660-
/**
661-
* @deprecated See {@link IScopes#reportFullyDisplayed()}.
662-
*/
663-
@Deprecated
664-
default void reportFullDisplayed() {
665-
reportFullyDisplayed();
666-
}
667-
668660
/**
669661
* Continue a trace based on HTTP header values. If no "sentry-trace" header is provided a random
670662
* trace ID and span ID is created.

sentry/src/main/java/io/sentry/Sentry.java

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1085,15 +1085,6 @@ public static void reportFullyDisplayed() {
10851085
getCurrentScopes().reportFullyDisplayed();
10861086
}
10871087

1088-
/**
1089-
* @deprecated See {@link Sentry#reportFullyDisplayed()}.
1090-
*/
1091-
@Deprecated
1092-
@SuppressWarnings("InlineMeSuggester")
1093-
public static void reportFullDisplayed() {
1094-
reportFullyDisplayed();
1095-
}
1096-
10971088
/** the metrics API for the current Scopes */
10981089
@NotNull
10991090
@ApiStatus.Experimental

sentry/src/test/java/io/sentry/ScopesTest.kt

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1975,13 +1975,6 @@ class ScopesTest {
19751975
assertTrue(called)
19761976
}
19771977

1978-
@Test
1979-
fun `reportFullDisplayed calls reportFullyDisplayed`() {
1980-
val scopes = spy(generateScopes())
1981-
scopes.reportFullDisplayed()
1982-
verify(scopes).reportFullyDisplayed()
1983-
}
1984-
19851978
@Test
19861979
fun `continueTrace creates propagation context from headers and returns transaction context if performance enabled`() {
19871980
val scopes = generateScopes()

sentry/src/test/java/io/sentry/SentryTest.kt

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -714,17 +714,6 @@ class SentryTest {
714714
verify(scopes).reportFullyDisplayed()
715715
}
716716

717-
@Test
718-
fun `reportFullDisplayed calls reportFullyDisplayed`() {
719-
val scopes = mock<IScopes>()
720-
Sentry.init {
721-
it.dsn = dsn
722-
}
723-
Sentry.setCurrentScopes(scopes)
724-
Sentry.reportFullDisplayed()
725-
verify(scopes).reportFullyDisplayed()
726-
}
727-
728717
@Test
729718
fun `ignores executorService if it is closed`() {
730719
var sentryOptions: SentryOptions? = null

0 commit comments

Comments
 (0)