Skip to content

Commit 88afb49

Browse files
authored
Merge pull request cfpb#1075 from jmarin/compiler-warnings
Compiler warnings
2 parents b611285 + 25e2a3d commit 88afb49

File tree

85 files changed

+47
-179
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

85 files changed

+47
-179
lines changed

api/src/main/scala/hmda/api/HmdaFilingApi.scala

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,14 @@
11
package hmda.api
22

3-
import akka.actor.{ ActorRef, ActorSystem, Props }
3+
import akka.actor.{ ActorSystem, Props }
44
import akka.event.Logging
55
import akka.http.scaladsl.Http
66
import akka.http.scaladsl.Http.ServerBinding
77
import akka.http.scaladsl.server.Directives._
88
import akka.http.scaladsl.server.Route
9-
import akka.pattern.{ ask, pipe }
9+
import akka.pattern.pipe
1010
import akka.stream.ActorMaterializer
1111
import akka.util.Timeout
12-
import com.typesafe.config.ConfigFactory
1312
import hmda.api.http.{ BaseHttpApi, HmdaCustomDirectives, InstitutionsHttpApi, LarHttpApi }
1413
import hmda.api.HmdaConfig._
1514
import scala.concurrent.duration._

api/src/main/scala/hmda/api/HmdaPlatform.scala

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ import hmda.query.projections.filing.HmdaFilingDBProjection._
2424
import hmda.validation.ValidationStats
2525
import hmda.api.HmdaConfig._
2626
import hmda.query.HmdaProjectionQuery
27-
import hmda.query.projections.institutions.InstitutionCassandraProjection
2827

2928
object HmdaPlatform {
3029

api/src/main/scala/hmda/api/http/ValidationErrorConverter.scala

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ import hmda.model.edits.EditMetaDataLookup
66
import hmda.model.fi.{ HmdaFileRow, HmdaRowError }
77
import hmda.model.validation.ValidationError
88
import hmda.persistence.processing.HmdaFileValidator.HmdaFileValidationState
9-
import hmda.validation.engine._
109
import spray.json.{ JsNumber, JsObject, JsString, JsValue }
1110

1211
trait ValidationErrorConverter {

api/src/main/scala/hmda/api/http/institutions/FilingPaths.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ import hmda.persistence.HmdaSupervisor.{ FindFilings, FindSubmissions }
1919
import hmda.persistence.institutions.FilingPersistence.GetFilingByPeriod
2020
import hmda.persistence.institutions.{ FilingPersistence, SubmissionPersistence }
2121

22-
import scala.concurrent.{ ExecutionContext, Future }
22+
import scala.concurrent.Future
2323
import scala.util.{ Failure, Success }
2424

2525
trait FilingPaths extends InstitutionProtocol with ApiErrorProtocol with HmdaCustomDirectives {

api/src/main/scala/hmda/api/http/institutions/InstitutionPaths.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ import hmda.persistence.model.HmdaSupervisorActor.FindActorByName
2222
import hmda.query.view.institutions.InstitutionView
2323
import hmda.query.view.institutions.InstitutionView.{ GetInstitutionById, GetInstitutionsById }
2424

25-
import scala.concurrent.{ ExecutionContext, Future }
25+
import scala.concurrent.Future
2626
import scala.util.{ Failure, Success }
2727

2828
trait InstitutionPaths extends InstitutionProtocol with ApiErrorProtocol with HmdaCustomDirectives {

api/src/main/scala/hmda/api/http/institutions/UploadPaths.scala

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ import hmda.persistence.processing.SubmissionManager
2828
import hmda.query.HmdaQuerySupervisor.FindHmdaFilingView
2929
import hmda.query.projections.filing.HmdaFilingDBProjection.{ CreateSchema, DeleteLars }
3030

31-
import scala.concurrent.ExecutionContext
3231
import scala.util.{ Failure, Success }
3332

3433
trait UploadPaths extends InstitutionProtocol with ApiErrorProtocol with SubmissionProtocol with HmdaCustomDirectives {

api/src/main/scala/hmda/api/http/institutions/submissions/SubmissionBasePaths.scala

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,11 @@ import akka.util.Timeout
1212
import hmda.api.http.{ HmdaCustomDirectives, ValidationErrorConverter }
1313
import hmda.api.model._
1414
import hmda.api.protocol.processing.{ ApiErrorProtocol, EditResultsProtocol, InstitutionProtocol }
15-
import hmda.model.fi.{ Filing, Submission, SubmissionId }
16-
import hmda.model.validation.Macro
17-
import hmda.persistence.messages.CommonMessages.GetState
18-
import hmda.persistence.HmdaSupervisor.{ FindFilings, FindProcessingActor, FindSubmissions }
15+
import hmda.model.fi.{ Filing, Submission }
16+
import hmda.persistence.HmdaSupervisor.{ FindFilings, FindSubmissions }
1917
import hmda.persistence.institutions.FilingPersistence.GetFilingByPeriod
2018
import hmda.persistence.institutions.SubmissionPersistence.{ CreateSubmission, GetLatestSubmission }
2119
import hmda.persistence.institutions.{ FilingPersistence, SubmissionPersistence }
22-
import hmda.persistence.processing.HmdaFileValidator
23-
import hmda.persistence.processing.HmdaFileValidator.HmdaFileValidationState
2420

2521
import scala.concurrent.ExecutionContext
2622
import scala.util.{ Failure, Success }

api/src/main/scala/hmda/api/http/institutions/submissions/SubmissionEditPaths.scala

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import akka.actor.{ ActorRef, ActorSelection, ActorSystem }
44
import akka.event.LoggingAdapter
55
import akka.http.scaladsl.marshalling.ToResponseMarshallable
66
import akka.http.scaladsl.marshallers.sprayjson.SprayJsonSupport._
7-
import akka.http.scaladsl.model.Uri
87
import akka.http.scaladsl.server.Directives._
98
import akka.pattern.ask
109
import akka.stream.ActorMaterializer
@@ -20,8 +19,6 @@ import hmda.persistence.institutions.SubmissionPersistence
2019
import hmda.persistence.institutions.SubmissionPersistence.GetSubmissionById
2120
import hmda.persistence.processing.{ HmdaFileValidator, SubmissionManager }
2221
import hmda.persistence.processing.HmdaFileValidator._
23-
import hmda.validation.engine._
24-
2522
import scala.concurrent.{ ExecutionContext, Future }
2623
import scala.util.matching.Regex
2724
import scala.util.{ Failure, Success }

api/src/main/scala/hmda/api/http/institutions/submissions/SubmissionIrsPaths.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ trait SubmissionIrsPaths
6161
}
6262
}
6363

64-
private def getMsa(instId: String, period: String, seqNr: Int)(implicit ec: ExecutionContext): Future[Seq[Msa]] = {
64+
private def getMsa(instId: String, period: String, seqNr: Int): Future[Seq[Msa]] = {
6565
val validationStats = system.actorSelection("/user/validation-stats")
6666
val submissionId = SubmissionId(instId, period, seqNr)
6767
(validationStats ? FindIrsStats(submissionId)).mapTo[Seq[Msa]]

api/src/main/scala/hmda/api/http/institutions/submissions/SubmissionParseErrorsPaths.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ import hmda.persistence.processing.HmdaFileParser.{ GetStatePaginated, Paginated
1919
import hmda.persistence.processing.HmdaFileParser
2020

2121
import scala.concurrent.ExecutionContext
22-
import scala.util.{ Failure, Success, Try }
22+
import scala.util.{ Failure, Success }
2323

2424
trait SubmissionParseErrorsPaths
2525
extends ParserResultsProtocol

0 commit comments

Comments
 (0)