Revert "Lookup the rewritten type when rewriting kotlin metadata"

This reverts commit 0ecbcbbe4654bb082213d3cd25a6b1fe1c9c31de.

Reason for revert: Fails pruning merged super-types.

Change-Id: I96eeb415accd25d801825363a054bd466eb8183b
diff --git a/src/main/java/com/android/tools/r8/kotlin/KotlinTypeReference.java b/src/main/java/com/android/tools/r8/kotlin/KotlinTypeReference.java
index bcbf589..088e7ec 100644
--- a/src/main/java/com/android/tools/r8/kotlin/KotlinTypeReference.java
+++ b/src/main/java/com/android/tools/r8/kotlin/KotlinTypeReference.java
@@ -65,12 +65,11 @@
     if (!known.isClassType()) {
       return known.descriptor.toString();
     }
-    DexType rewrittenType = appView.graphLens().lookupClassType(known);
     if (appView.appInfo().hasLiveness()
-        && !appView.withLiveness().appInfo().isNonProgramTypeOrLiveProgramType(rewrittenType)) {
+        && !appView.withLiveness().appInfo().isNonProgramTypeOrLiveProgramType(known)) {
       return defaultValue;
     }
-    DexString descriptor = namingLens.lookupDescriptor(rewrittenType);
+    DexString descriptor = namingLens.lookupDescriptor(known);
     if (descriptor != null) {
       return descriptor.toString();
     }
@@ -103,7 +102,7 @@
   public void trace(DexDefinitionSupplier definitionSupplier) {
     if (known != null && known.isClassType()) {
       // Lookup the definition, ignoring the result. This populates the sets in the Enqueuer.
-      definitionSupplier.contextIndependentDefinitionFor(known);
+      definitionSupplier.definitionFor(known);
     }
   }
 }