Remove ConfigGenerator.createClassName (scala)
No longer used by any live config models.
@@ -7,8 +7,6 @@ import com.yahoo.config.codegen.JavaClassBuilder.Indentation
import com.yahoo.config.codegen.LeafCNode._
import com.yahoo.config.codegen.ReservedWords.{INTERNAL_PREFIX => InternalPrefix}
-import scala.util.parsing.combinator.JavaTokenParsers
-
/**
* @author gjoranv
* @author tonytv
@@ -450,18 +448,4 @@ object ConfigGenerator {
}
}
- /**
- * Deprecated!
- * TODO: Remove when no longer used by the oldest available config-model.
- */
- @deprecated("Use ConfiggenUtil.createClassName() instead", "6.143")
- def createClassName(defName: String): String = {
- val className = defName.split("-").map (_.capitalize).mkString + "Config"
- val parser = new JavaTokenParsers {}
- parser.parseAll(parser.ident, className) match {
- case parser.NoSuccess(msg, _) =>
- throw new CodegenRuntimeException("Illegal config definition file name '" + defName + "': " + msg)
- case success => success.get
- }
- }
}
