Skip to content

Commit 39d1187

Browse files
committed
chore: remove obsolete code
1 parent 4748a00 commit 39d1187

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

flutter/ios/Classes/SentryFlutterPluginApple.swift

-14
Original file line numberDiff line numberDiff line change
@@ -153,9 +153,6 @@ public class SentryFlutterPluginApple: NSObject, FlutterPlugin {
153153
removeTag(key: key, result: result)
154154

155155
#if !os(tvOS) && !os(watchOS)
156-
case "startProfiler":
157-
startProfiler(call, result)
158-
159156
case "discardProfiler":
160157
discardProfiler(call, result)
161158

@@ -562,17 +559,6 @@ public class SentryFlutterPluginApple: NSObject, FlutterPlugin {
562559
}
563560
}
564561

565-
private func startProfiler(_ call: FlutterMethodCall, _ result: @escaping FlutterResult) {
566-
guard let traceId = call.arguments as? String else {
567-
print("Cannot start profiling: trace ID missing")
568-
result(FlutterError(code: "5", message: "Cannot start profiling: trace ID missing", details: nil))
569-
return
570-
}
571-
572-
let startTime = PrivateSentrySDKOnly.startProfiler(forTrace: SentryId(uuidString: traceId))
573-
result(startTime)
574-
}
575-
576562
private func collectProfile(_ call: FlutterMethodCall, _ result: @escaping FlutterResult) {
577563
guard let arguments = call.arguments as? [String: Any],
578564
let traceId = arguments["traceId"] as? String else {

0 commit comments

Comments
 (0)