Skip to content

Commit

Permalink
build fix
Browse files Browse the repository at this point in the history
Signed-off-by: iceseer <iceseer@gmail.com>
  • Loading branch information
iceseer committed Apr 1, 2024
1 parent 70cfba1 commit 3d2b2e9
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 11 deletions.
5 changes: 0 additions & 5 deletions core/runtime/common/runtime_instances_pool.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
#include <shared_mutex>
#include <unordered_set>

#include "injector/inject.hpp"
#include "runtime/common/stack_limiter.hpp"
#include "runtime/module_factory.hpp"
#include "utils/lru.hpp"
Expand All @@ -34,10 +33,6 @@ namespace kagome::runtime {
std::shared_ptr<InstrumentWasm> instrument,
size_t capacity = DEFAULT_MODULES_CACHE_SIZE);

explicit RuntimeInstancesPoolImpl(
Inject, std::shared_ptr<ModuleFactory> module_factory, ...)
: RuntimeInstancesPoolImpl{std::move(module_factory)} {}

outcome::result<std::shared_ptr<ModuleInstance>> instantiateFromCode(
const CodeHash &code_hash,
common::BufferView code_zstd,
Expand Down
4 changes: 0 additions & 4 deletions core/runtime/module_factory.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,6 @@ namespace kagome::runtime {

virtual outcome::result<std::shared_ptr<Module>, CompilationError> make(
common::BufferView code) const = 0;

virtual bool testDontInstrument() const {
return false;
}
};

} // namespace kagome::runtime
2 changes: 0 additions & 2 deletions test/mock/core/runtime/module_factory_mock.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,5 @@ namespace kagome::runtime {
make,
(common::BufferView),
(const, override));

MOCK_METHOD(bool, testDontInstrument, (), (const, override));
};
} // namespace kagome::runtime

0 comments on commit 3d2b2e9

Please sign in to comment.