From deb547ab81f0a1749b15752977436cf2221a7bcf Mon Sep 17 00:00:00 2001 From: Albert Meltzer Date: Thu, 22 Feb 2024 16:09:32 -0800 Subject: [PATCH] Scalafmt: remove unused methods --- .../src/main/scala/org/scalafmt/Scalafmt.scala | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/scalafmt-core/shared/src/main/scala/org/scalafmt/Scalafmt.scala b/scalafmt-core/shared/src/main/scala/org/scalafmt/Scalafmt.scala index cf594d5756..68521ca46a 100644 --- a/scalafmt-core/shared/src/main/scala/org/scalafmt/Scalafmt.scala +++ b/scalafmt-core/shared/src/main/scala/org/scalafmt/Scalafmt.scala @@ -3,7 +3,6 @@ package org.scalafmt import java.nio.file.Path import metaconfig.Configured -import scala.meta.Dialect import scala.meta.Input import scala.meta.parsers.ParseException import scala.util.Failure @@ -183,19 +182,4 @@ object Scalafmt { ScalafmtConfig.uncheckedDefault ) - /** Utility method to change dialect on ScalafmtConfig. - * - * Binary compatibility is guaranteed between releases, unlike with - * ScalafmtConfig.copy. - */ - def configWithDialect( - config: ScalafmtConfig, - dialect: Dialect - ): ScalafmtConfig = - config.withDialect(dialect) - - def configForSbt( - config: ScalafmtConfig - ): ScalafmtConfig = - config.forSbt }