Mercurial > cgi-bin > hgweb.cgi > PassMan
diff src/main/kotlin/name/blackcap/passman/Main.kt @ 8:698c4a3d758d
Some code clean-up.
author | David Barts <n5jrn@me.com> |
---|---|
date | Fri, 23 Sep 2022 20:59:52 -0700 |
parents | eafa3779aef8 |
children | ea65ab890f66 |
line wrap: on
line diff
--- a/src/main/kotlin/name/blackcap/passman/Main.kt Tue Sep 20 21:54:32 2022 -0700 +++ b/src/main/kotlin/name/blackcap/passman/Main.kt Fri Sep 23 20:59:52 2022 -0700 @@ -32,8 +32,6 @@ .lowercase() .replaceFirstChar { it.titlecase(Locale.getDefault()) } Class.forName("$MAIN_PACKAGE.${shortName}Subcommand") as? Class<Subcommand> - /* val ret = Class.forName("$MAIN_PACKAGE.$shortName") - if (ret.isInstance(Subcommand::class.java)) { ret as Class<Subcommand> } else { null } */ } catch (e: ClassNotFoundException) { null }