Skip to content

Commit ae2ac82

Browse files
committed
Remove unused method parameter.
1 parent adc4107 commit ae2ac82

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

mllib/src/main/scala/org/apache/spark/ml/feature/OneHotEncoderEstimator.scala

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -351,9 +351,7 @@ object OneHotEncoderModel extends MLReadable[OneHotEncoderModel] {
351351
*/
352352
private[feature] object OneHotEncoderCommon {
353353

354-
private def genOutputAttrNames(
355-
inputCol: StructField,
356-
outputColName: String): Option[Array[String]] = {
354+
private def genOutputAttrNames(inputCol: StructField): Option[Array[String]] = {
357355
val inputAttr = Attribute.fromStructField(inputCol)
358356
inputAttr match {
359357
case nominal: NominalAttribute =>
@@ -399,7 +397,7 @@ private[feature] object OneHotEncoderCommon {
399397
inputCol: StructField,
400398
dropLast: Boolean,
401399
outputColName: String): StructField = {
402-
val outputAttrNames = genOutputAttrNames(inputCol, outputColName)
400+
val outputAttrNames = genOutputAttrNames(inputCol)
403401
val filteredOutputAttrNames = outputAttrNames.map { names =>
404402
if (dropLast) {
405403
require(names.length > 1,

0 commit comments

Comments
 (0)