diff options
| author | Leway Colin | 2019-06-19 05:22:47 +0800 |
|---|---|---|
| committer | Adam Izraelevitz | 2019-06-18 14:22:47 -0700 |
| commit | fb4133cd76600cc8707e9a7b2f639cf120bd825c (patch) | |
| tree | 7532f341dc95f293fa02e4d015d1a6a0fac102ba /src/main/scala/firrtl/util | |
| parent | d1d422670eb406567b2e34d7036a5cc0262309a1 (diff) | |
Use scalafix to remove unused import and deprecated procedure syntax (#1074)
* Add sbt-scalafix
* Add scalafix guide to README
* Remove Unused Import
* Remove deprecated procedure syntax
Diffstat (limited to 'src/main/scala/firrtl/util')
| -rw-r--r-- | src/main/scala/firrtl/util/BackendCompilationUtilities.scala | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/main/scala/firrtl/util/BackendCompilationUtilities.scala b/src/main/scala/firrtl/util/BackendCompilationUtilities.scala index 34be1d1e..dfa00eba 100644 --- a/src/main/scala/firrtl/util/BackendCompilationUtilities.scala +++ b/src/main/scala/firrtl/util/BackendCompilationUtilities.scala @@ -7,7 +7,6 @@ import java.nio.file.Files import java.text.SimpleDateFormat import java.util.Calendar -import firrtl.FirrtlExecutionOptions import scala.sys.process.{ProcessBuilder, ProcessLogger, _} @@ -26,7 +25,7 @@ trait BackendCompilationUtilities { * @param name the name of the resource * @param file the file to write it into */ - def copyResourceToFile(name: String, file: File) { + def copyResourceToFile(name: String, file: File): Unit = { val in = getClass.getResourceAsStream(name) if (in == null) { throw new FileNotFoundException(s"Resource '$name'") |
