Skip to content

Commit

Permalink
Remove unused java code
Browse files Browse the repository at this point in the history
  • Loading branch information
krystofwoldrich committed Aug 10, 2023
1 parent 1b6645a commit 8163cb0
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 7 deletions.
5 changes: 0 additions & 5 deletions android/src/main/java/io/sentry/react/RNSentryModuleImpl.java
Original file line number Diff line number Diff line change
Expand Up @@ -708,11 +708,6 @@ public void fetchNativePackageName(Promise promise) {
promise.resolve(packageInfo.packageName);
}

public void fetchNativeStackFramesBy(Promise promise) {
logger.log(SentryLevel.ERROR, "This method works only on iOS.");
promise.resolve(null);
}

private void setEventOriginTag(SentryEvent event) {
SdkVersion sdk = event.getSdk();
if (sdk != null) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,6 @@ public void fetchNativePackageName(Promise promise) {

@Override
public void fetchNativeStackFramesBy(Promise promise) {
this.impl.fetchNativeStackFramesBy(promise);
// Not used on Android
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,6 @@ public void fetchNativePackageName(Promise promise) {

@ReactMethod
public void fetchNativeStackFramesBy(Promise promise) {
this.impl.fetchNativeStackFramesBy(promise);
// Not used on Android
}
}

0 comments on commit 8163cb0

Please sign in to comment.