base: remove unused deprecated tracing method

All users of this have been migrated to the replacement so let's remove
this to avoid misleading people.

Bug: 259535570
Change-Id: Idf7b86e527237b15b46e39655c85604a68e344fc
This commit is contained in:
Lalit Maganti
2022-12-14 12:00:14 +00:00
parent 2fb65e6696
commit 14fbb207eb
3 changed files with 1 additions and 15 deletions

View File

@@ -1193,7 +1193,7 @@ public final class JobServiceContext implements ServiceConnection {
completedJob.isConstraintSatisfied(JobStatus.CONSTRAINT_CONTENT_TRIGGER));
if (Trace.isTagEnabled(Trace.TRACE_TAG_SYSTEM_SERVER)) {
Trace.asyncTraceForTrackEnd(Trace.TRACE_TAG_SYSTEM_SERVER, "JobScheduler",
completedJob.getTag(), getId());
getId());
}
try {
mBatteryStats.noteJobFinish(mRunningJob.getBatteryName(), mRunningJob.getSourceUid(),

View File

@@ -1080,7 +1080,6 @@ public abstract class Service extends ContextWrapper implements ComponentCallbac
if (mForegroundServiceTraceTitle != null) {
Trace.asyncTraceForTrackEnd(TRACE_TAG_ACTIVITY_MANAGER,
TRACE_TRACK_NAME_FOREGROUND_SERVICE,
mForegroundServiceTraceTitle,
System.identityHashCode(this));
mForegroundServiceTraceTitle = null;
}

View File

@@ -394,19 +394,6 @@ public final class Trace {
}
}
/**
* @deprecated use asyncTraceForTrackEnd without methodName argument
*
* @hide
*/
@Deprecated
public static void asyncTraceForTrackEnd(long traceTag,
@NonNull String trackName, @NonNull String methodName, int cookie) {
if (isTagEnabled(traceTag)) {
nativeAsyncTraceForTrackEnd(traceTag, trackName, cookie);
}
}
/**
* Writes a trace message to indicate that a given section of code was invoked.
*