diff --git a/sentry-android-core/src/main/java/io/sentry/android/core/internal/util/AndroidCurrentDateProvider.java b/sentry-android-core/src/main/java/io/sentry/android/core/internal/util/AndroidCurrentDateProvider.java deleted file mode 100644 index b93beb4f578..00000000000 --- a/sentry-android-core/src/main/java/io/sentry/android/core/internal/util/AndroidCurrentDateProvider.java +++ /dev/null @@ -1,38 +0,0 @@ -package io.sentry.android.core.internal.util; - -import android.os.SystemClock; -import io.sentry.transport.ICurrentDateProvider; -import org.jetbrains.annotations.ApiStatus; - -/** - * An uptime clock: {@link SystemClock#uptimeMillis()} excludes time the device spent in deep sleep, - * which neither the name nor the {@link ICurrentDateProvider} type says. {@link - * io.sentry.transport.CurrentDateProvider} implements that same type with epoch milliseconds, so a - * call site declaring the interface accepts either, and the two disagree by however long the device - * has been suspended. - * - *
Superseded by {@link io.sentry.time.MonotonicTicker}, which counts deep sleep and says in its - * name that only differences between its own ticks are meaningful. The annotation sits on {@link - * #getInstance()}, the only way in, because a deprecated type warns on every import and an import - * cannot carry a {@code @SuppressWarnings}. - */ -@ApiStatus.Internal -public final class AndroidCurrentDateProvider implements ICurrentDateProvider { - - private static final ICurrentDateProvider instance = new AndroidCurrentDateProvider(); - - /** - * @deprecated use {@link io.sentry.time.MonotonicTicker} to measure an interval. - */ - @Deprecated - public static ICurrentDateProvider getInstance() { - return instance; - } - - private AndroidCurrentDateProvider() {} - - @Override - public long getCurrentTimeMillis() { - return SystemClock.uptimeMillis(); - } -}