Skip to content

Commit

Permalink
[Short] Remove unused code (#11079)
Browse files Browse the repository at this point in the history
CHANGELOG_BEGIN
CHANGELOG_END
  • Loading branch information
pbatko-da authored Sep 29, 2021
1 parent c1d1521 commit 62234dc
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,6 @@ trait ErrorFactories {
.build()
)

def notFound(message: String): StatusRuntimeException =
grpcError(
Status
.newBuilder()
.setCode(Code.NOT_FOUND.value())
.setMessage(message)
.build()
)

/** @param expected Expected ledger id.
* @param received Received ledger id.
* @param definiteAnswer A flag that says whether it is a definite answer. Provided only in the context of command deduplication.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,6 @@ class ErrorFactoriesSpec extends AnyWordSpec with Matchers with TableDrivenPrope
permissionDenied().getStatus.getCode shouldBe Code.PERMISSION_DENIED
}

"return a notFound error" in {
val exception = notFound("my message").getStatus
exception.getCode shouldBe Code.NOT_FOUND
exception.getDescription shouldBe "my message"
}

"return a missingLedgerConfig error" in {
val testCases = Table(
("definite answer", "expected details"),
Expand Down

0 comments on commit 62234dc

Please sign in to comment.