Skip to content

Commit

Permalink
chore: remove obsolete code
Browse files Browse the repository at this point in the history
  • Loading branch information
vaind committed Sep 25, 2023
1 parent 4748a00 commit 39d1187
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions flutter/ios/Classes/SentryFlutterPluginApple.swift
Original file line number Diff line number Diff line change
Expand Up @@ -153,9 +153,6 @@ public class SentryFlutterPluginApple: NSObject, FlutterPlugin {
removeTag(key: key, result: result)

#if !os(tvOS) && !os(watchOS)
case "startProfiler":
startProfiler(call, result)

case "discardProfiler":
discardProfiler(call, result)

Expand Down Expand Up @@ -562,17 +559,6 @@ public class SentryFlutterPluginApple: NSObject, FlutterPlugin {
}
}

private func startProfiler(_ call: FlutterMethodCall, _ result: @escaping FlutterResult) {
guard let traceId = call.arguments as? String else {
print("Cannot start profiling: trace ID missing")
result(FlutterError(code: "5", message: "Cannot start profiling: trace ID missing", details: nil))
return
}

let startTime = PrivateSentrySDKOnly.startProfiler(forTrace: SentryId(uuidString: traceId))
result(startTime)
}

private func collectProfile(_ call: FlutterMethodCall, _ result: @escaping FlutterResult) {
guard let arguments = call.arguments as? [String: Any],
let traceId = arguments["traceId"] as? String else {
Expand Down

0 comments on commit 39d1187

Please sign in to comment.