Remove unused field and method in BackportedMethodListCommand

Change-Id: I5b0dff8ca41c691fc150cbd1e9fb9e1e993ff01a
diff --git a/src/main/java/com/android/tools/r8/BackportedMethodListCommand.java b/src/main/java/com/android/tools/r8/BackportedMethodListCommand.java
index 3805298..f287636 100644
--- a/src/main/java/com/android/tools/r8/BackportedMethodListCommand.java
+++ b/src/main/java/com/android/tools/r8/BackportedMethodListCommand.java
@@ -10,7 +10,6 @@
 import com.android.tools.r8.origin.Origin;
 import com.android.tools.r8.utils.AndroidApiLevel;
 import com.android.tools.r8.utils.AndroidApp;
-import com.android.tools.r8.utils.InternalOptions;
 import com.android.tools.r8.utils.Reporter;
 import com.android.tools.r8.utils.StringDiagnostic;
 import com.google.common.collect.ImmutableSet;
@@ -46,7 +45,6 @@
   private final DesugaredLibrarySpecification desugaredLibrarySpecification;
   private final AndroidApp app;
   private final StringConsumer backportedMethodListConsumer;
-  private final DexItemFactory factory;
 
   public boolean isPrintHelp() {
     return printHelp;
@@ -89,7 +87,6 @@
     this.desugaredLibrarySpecification = null;
     this.app = null;
     this.backportedMethodListConsumer = null;
-    this.factory = null;
   }
 
   private BackportedMethodListCommand(
@@ -98,8 +95,7 @@
       boolean androidPlatformBuild,
       DesugaredLibrarySpecification desugaredLibrarySpecification,
       AndroidApp app,
-      StringConsumer backportedMethodListConsumer,
-      DexItemFactory factory) {
+      StringConsumer backportedMethodListConsumer) {
     this.printHelp = false;
     this.printVersion = false;
     this.reporter = reporter;
@@ -108,16 +104,6 @@
     this.desugaredLibrarySpecification = desugaredLibrarySpecification;
     this.app = app;
     this.backportedMethodListConsumer = backportedMethodListConsumer;
-    this.factory = factory;
-  }
-
-  InternalOptions getInternalOptions() {
-    InternalOptions options = new InternalOptions(factory, getReporter());
-    options.setMinApiLevel(AndroidApiLevel.getAndroidApiLevel(minApiLevel));
-    options
-        .getLibraryDesugaringOptions()
-        .setDesugaredLibrarySpecification(desugaredLibrarySpecification);
-    return options;
   }
 
   public static Builder builder() {
@@ -353,8 +339,7 @@
           androidPlatformBuild,
           getDesugaredLibraryConfiguration(factory),
           library,
-          backportedMethodListConsumer,
-          factory);
+          backportedMethodListConsumer);
     }
   }
 }