From ecb186c4fe64114e05c7e3ad92479e771f347b83 Mon Sep 17 00:00:00 2001 From: Luke Imhoff Date: Wed, 11 Apr 2018 13:32:33 -0500 Subject: [PATCH] Remove unused code to increase coverage percentage --- apps/explorer/lib/explorer/chain/credit.ex | 2 -- apps/explorer/lib/explorer/chain/debit.ex | 2 -- apps/explorer/lib/explorer/chain/internal_transaction.ex | 2 -- coveralls.json | 2 +- 4 files changed, 1 insertion(+), 7 deletions(-) diff --git a/apps/explorer/lib/explorer/chain/credit.ex b/apps/explorer/lib/explorer/chain/credit.ex index 1477ca91a9..ede5471c92 100644 --- a/apps/explorer/lib/explorer/chain/credit.ex +++ b/apps/explorer/lib/explorer/chain/credit.ex @@ -22,6 +22,4 @@ defmodule Explorer.Chain.Credit do def refresh do SQL.query!(Repo, "REFRESH MATERIALIZED VIEW CONCURRENTLY credits;", [], timeout: 120_000) end - - def null, do: %__MODULE__{value: Decimal.new(0), count: 0} end diff --git a/apps/explorer/lib/explorer/chain/debit.ex b/apps/explorer/lib/explorer/chain/debit.ex index 0f709c081d..de6c7f6ed4 100644 --- a/apps/explorer/lib/explorer/chain/debit.ex +++ b/apps/explorer/lib/explorer/chain/debit.ex @@ -22,6 +22,4 @@ defmodule Explorer.Chain.Debit do def refresh do SQL.query!(Repo, "REFRESH MATERIALIZED VIEW CONCURRENTLY debits;", [], timeout: 120_000) end - - def null, do: %__MODULE__{value: Decimal.new(0), count: 0} end diff --git a/apps/explorer/lib/explorer/chain/internal_transaction.ex b/apps/explorer/lib/explorer/chain/internal_transaction.ex index c3eb25aea9..1775f65305 100644 --- a/apps/explorer/lib/explorer/chain/internal_transaction.ex +++ b/apps/explorer/lib/explorer/chain/internal_transaction.ex @@ -35,6 +35,4 @@ defmodule Explorer.Chain.InternalTransaction do |> foreign_key_constraint(:from_address_id) |> unique_constraint(:transaction_id, name: :internal_transactions_transaction_id_index_index) end - - def null, do: %__MODULE__{} end diff --git a/coveralls.json b/coveralls.json index 4b1f26482a..688f929e28 100644 --- a/coveralls.json +++ b/coveralls.json @@ -1,7 +1,7 @@ { "coverage_options": { "treat_no_relevant_lines_as_covered": true, - "minimum_coverage": 77.8 + "minimum_coverage": 83.2 }, "terminal_options": { "file_column_width": 120