Skip to content

Commit a0ed0ee

Browse files
committed
clean: Remove unused DataStorageCompanion trait
1 parent 2de4109 commit a0ed0ee

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

core/src/main/scala/com/codacy/analysis/core/storage/DataStorage.scala

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,17 +8,13 @@ import org.log4s.{Logger, getLogger}
88

99
import scala.util.{Failure, Success, Try}
1010

11-
trait DataStorageCompanion {
12-
def apply[T](storageFilename: String)(implicit encoder: Encoder[T], decoder: Decoder[T]): DataStorage[T]
13-
}
14-
1511
trait DataStorage[T] {
1612
def get(): Option[Seq[T]]
1713
def save(values: Seq[T]): Boolean
1814
def invalidate(): Try[Unit]
1915
}
2016

21-
object FileDataStorage extends DataStorageCompanion {
17+
object FileDataStorage {
2218

2319
def apply[T](storageFilename: String)(implicit encoder: Encoder[T], decoder: Decoder[T]): DataStorage[T] = {
2420
val cacheFolder: File = {

0 commit comments

Comments
 (0)