Skip to content

ref(android): Remove unused TimeSpan.start() - #6089

Merged
runningcode merged 1 commit into
mainfrom
claude/timespan-start-usage-4a92c5
Sep 10, 2026
Merged

ref(android): Remove unused TimeSpan.start()#6089
runningcode merged 1 commit into
mainfrom
claude/timespan-start-usage-4a92c5

Conversation

@runningcode

@runningcode runningcode commented Sep 10, 2026

Copy link
Copy Markdown
Contributor

📜 Description

Removes TimeSpan.start(), which had no production callers, along with its 13 test call sites.

💡 Motivation and Context

Dead code

💚 How did you test it?

:sentry-android-core:testReleaseUnitTest for the touched classes — 211 tests, all passing. spotlessApply apiDump is clean.

📝 Checklist

  • I added GH Issue ID & Linear ID
  • I added tests to verify the changes.
  • No new PII added or SDK only sends newly added PII if sendDefaultPII is enabled.
  • I updated the docs if needed.
  • I updated the wizard if needed.
  • Review from the native team if needed.
  • No breaking change or entry added to the changelog.
  • No breaking change for hybrid SDKs or communicated to hybrid SDKs.
  • Public API changes reviewed by another Mobile SDK team member or implemented according to the develop docs spec.

🔮 Next steps

#skip-changelog

TimeSpan.start() had no production callers. Every start time in the SDK is
set through setStartedAt(uptimeMs), which does the same thing for a caller
passing SystemClock.uptimeMillis(). The tests that used it now call
setStartedAt directly.

Three AppStartMetricsTest cases also called start() and stop() immediately
before overwriting both with setStartedAt/setStoppedAt; those calls were
dead and are dropped.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Comment thread sentry-android-core/api/sentry-android-core.api
@sentry

sentry Bot commented Sep 10, 2026

Copy link
Copy Markdown

📲 Install Builds

Android

🔗 App Name App ID Version Configuration
SDK Size io.sentry.tests.size 8.56.0 (1) release

⚙️ sentry-android Build Distribution Settings

@runningcode
runningcode merged commit 04f92d7 into main Sep 10, 2026
34 of 35 checks passed
@runningcode
runningcode deleted the claude/timespan-start-usage-4a92c5 branch September 10, 2026 16:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants