Skip to content

Commit 98d7943

Browse files
committed
Remove unused method from PprofTranslator.
1 parent aab9b3d commit 98d7943

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

profiler/src/main/java/com/splunk/opentelemetry/profiler/snapshot/PprofTranslator.java

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -24,19 +24,10 @@
2424
import static com.splunk.opentelemetry.profiler.ProfilingSemanticAttributes.THREAD_STATE;
2525
import static com.splunk.opentelemetry.profiler.ProfilingSemanticAttributes.TRACE_ID;
2626

27-
import com.google.perftools.profiles.ProfileProto.Profile;
2827
import com.google.perftools.profiles.ProfileProto.Sample;
2928
import java.util.List;
3029

3130
class PprofTranslator {
32-
public Profile translateToPprof(List<StackTrace> stackTraces) {
33-
Pprof pprof = new Pprof();
34-
for (StackTrace stackTrace : stackTraces) {
35-
pprof.add(translateToPprofSample(stackTrace, pprof));
36-
}
37-
return pprof.build();
38-
}
39-
4031
public Pprof toPprof(List<StackTrace> stackTraces) {
4132
Pprof pprof = new Pprof();
4233
for (StackTrace stackTrace : stackTraces) {

0 commit comments

Comments
 (0)