From 5d1db98f4247c683ca074854833a619e9c104319 Mon Sep 17 00:00:00 2001 From: Fedor Muratov Date: Thu, 21 Mar 2019 13:01:13 +0300 Subject: [PATCH] Remove redefinitions of redundant method in flat file storage (#2190) ### Description of the Change Remove redundant definition of the insert in flat file block storage. ### Benefits Improve the stability of the project. Signed-off-by: Fedor Muratov --- irohad/ametsuchi/impl/flat_file_block_storage.cpp | 4 ---- irohad/ametsuchi/impl/flat_file_block_storage.hpp | 2 -- 2 files changed, 6 deletions(-) diff --git a/irohad/ametsuchi/impl/flat_file_block_storage.cpp b/irohad/ametsuchi/impl/flat_file_block_storage.cpp index dba89a8a1e..43970474d1 100644 --- a/irohad/ametsuchi/impl/flat_file_block_storage.cpp +++ b/irohad/ametsuchi/impl/flat_file_block_storage.cpp @@ -39,10 +39,6 @@ bool FlatFileBlockStorage::insert( }); } -bool FlatFileBlockStorage::insert(const shared_model::interface::Block &block) { - return insert(clone(block)); -} - boost::optional> FlatFileBlockStorage::fetch( shared_model::interface::types::HeightType height) const { diff --git a/irohad/ametsuchi/impl/flat_file_block_storage.hpp b/irohad/ametsuchi/impl/flat_file_block_storage.hpp index 3cdb7be820..feb502cb84 100644 --- a/irohad/ametsuchi/impl/flat_file_block_storage.hpp +++ b/irohad/ametsuchi/impl/flat_file_block_storage.hpp @@ -27,8 +27,6 @@ namespace iroha { bool insert( std::shared_ptr block) override; - bool insert(const shared_model::interface::Block &block) override; - boost::optional> fetch(shared_model::interface::types::HeightType height) const override;