From 090fc58a083734956dbebe8ae357da0ce72d6fa4 Mon Sep 17 00:00:00 2001 From: Roman Perehonchuk Date: Tue, 12 Dec 2023 07:10:44 -0800 Subject: [PATCH] glean clean-up Summary: we migrated glean out of eqwalizer, killing the code Reviewed By: ilya-klyuchnikov Differential Revision: D51891021 fbshipit-source-id: 9c95b5beb8e34185e410aa77801e3a6da0336767 --- .../src/main/scala/com/whatsapp/eqwalizer/Main.scala | 10 ---------- eqwalizer/test_projects/_cli/help.cli | 1 - 2 files changed, 11 deletions(-) diff --git a/eqwalizer/src/main/scala/com/whatsapp/eqwalizer/Main.scala b/eqwalizer/src/main/scala/com/whatsapp/eqwalizer/Main.scala index c503f744..d5591f24 100644 --- a/eqwalizer/src/main/scala/com/whatsapp/eqwalizer/Main.scala +++ b/eqwalizer/src/main/scala/com/whatsapp/eqwalizer/Main.scala @@ -27,7 +27,6 @@ object Main { cmd match { case "check" => check(args1, json) case "ipc" => ipc(args1) - case "index" => gleanIndex(args) case _ => help() } } @@ -66,14 +65,6 @@ object Main { } } - private def gleanIndex(args: Array[String]): Unit = { - val path = args.lift(1).getOrElse("") - val indexerClass = Class.forName("com.whatsapp.eqwalizer.custom.GleanIndexer") - val indexer = indexerClass.getConstructor(classOf[String]).newInstance(path) - indexerClass.getDeclaredMethod("printIndex").invoke(indexer) - () - } - private def help(): Unit = Console.print(helpText) @@ -81,7 +72,6 @@ object Main { """com.whatsapp.eqwalizer.Main |usage: | check - | index |""".stripMargin /* undocumented: * `stats ` # stats for powering dashboards diff --git a/eqwalizer/test_projects/_cli/help.cli b/eqwalizer/test_projects/_cli/help.cli index b16b481e..5d256ae1 100644 --- a/eqwalizer/test_projects/_cli/help.cli +++ b/eqwalizer/test_projects/_cli/help.cli @@ -1,4 +1,3 @@ com.whatsapp.eqwalizer.Main usage: check - index