From e702e935d5f554d078a0b426046c175c4869b567 Mon Sep 17 00:00:00 2001 From: Viktor Baranov Date: Mon, 14 Oct 2024 17:42:35 +0300 Subject: [PATCH] chore: remove unused fetch_and_lock_by_hashes/1 public function --- .../lib/explorer/chain/pending_block_operation.ex | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/apps/explorer/lib/explorer/chain/pending_block_operation.ex b/apps/explorer/lib/explorer/chain/pending_block_operation.ex index 0852e317b8..9a1b5b4894 100644 --- a/apps/explorer/lib/explorer/chain/pending_block_operation.ex +++ b/apps/explorer/lib/explorer/chain/pending_block_operation.ex @@ -35,19 +35,6 @@ defmodule Explorer.Chain.PendingBlockOperation do |> unique_constraint(:block_hash, name: :pending_block_operations_pkey) end - @doc """ - Returns all pending block operations with the `block_hash` in the given list, - using "FOR UPDATE" to grab ShareLocks in order (see docs: sharelocks.md) - """ - def fetch_and_lock_by_hashes(hashes) when is_list(hashes) do - from( - pending_ops in __MODULE__, - where: pending_ops.block_hash in ^hashes, - order_by: [asc: pending_ops.block_hash], - lock: "FOR UPDATE" - ) - end - def block_hashes do from( pending_ops in __MODULE__,