Skip to content
This repository has been archived by the owner on Apr 17, 2019. It is now read-only.

Commit

Permalink
Remove redefinitions of redundant method in flat file storage (#2190)
Browse files Browse the repository at this point in the history
### 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 <muratovfyodor@yandex.ru>
  • Loading branch information
muratovv authored Mar 21, 2019
1 parent fafc095 commit 5d1db98
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
4 changes: 0 additions & 4 deletions irohad/ametsuchi/impl/flat_file_block_storage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,6 @@ bool FlatFileBlockStorage::insert(
});
}

bool FlatFileBlockStorage::insert(const shared_model::interface::Block &block) {
return insert(clone(block));
}

boost::optional<std::shared_ptr<const shared_model::interface::Block>>
FlatFileBlockStorage::fetch(
shared_model::interface::types::HeightType height) const {
Expand Down
2 changes: 0 additions & 2 deletions irohad/ametsuchi/impl/flat_file_block_storage.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,6 @@ namespace iroha {
bool insert(
std::shared_ptr<const shared_model::interface::Block> block) override;

bool insert(const shared_model::interface::Block &block) override;

boost::optional<std::shared_ptr<const shared_model::interface::Block>>
fetch(shared_model::interface::types::HeightType height) const override;

Expand Down

0 comments on commit 5d1db98

Please sign in to comment.