Remove palette hooks.

Make the method be part of the official palette API.

Bug: 186016399
Bug: 185778652
Change-Id: I3dc9e879c647fd63f5826091813613fd97e25c0d
diff --git a/runtime/class_linker.cc b/runtime/class_linker.cc
index 2df7d23..5f4f0ab 100644
--- a/runtime/class_linker.cc
+++ b/runtime/class_linker.cc
@@ -4092,11 +4092,8 @@
     // remembered sets and generational GCs.
     WriteBarrier::ForEveryFieldWrite(h_class_loader.Get());
   }
-  PaletteHooks* hooks = nullptr;
   VLOG(class_linker) << "Registered dex file " << dex_file.GetLocation();
-  if (PaletteGetHooks(&hooks) == PALETTE_STATUS_OK) {
-    hooks->NotifyDexFileLoaded(dex_file.GetLocation().c_str());
-  }
+  PaletteNotifyDexFileLoaded(dex_file.GetLocation().c_str());
   return h_dex_cache.Get();
 }