Skip to content

Commit

Permalink
Fix useless type cache
Browse files Browse the repository at this point in the history
  • Loading branch information
citronneur committed Sep 9, 2021
1 parent b37a43e commit c137ba0
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
cmake_minimum_required(VERSION 3.11)

# Project
project(yagi LANGUAGES CXX VERSION 1.0.0)
project(yagi LANGUAGES CXX VERSION 1.0.1)

# Opions
option(BUILD_TESTS "Build test programs" OFF)
Expand Down
7 changes: 0 additions & 7 deletions yagi/src/typemanager.cc
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,6 @@ namespace yagi
/**********************************************************************/
Datatype* TypeManager::findById(const string& n, uint8 id)
{
// find in cache
auto result = TypeFactory::findById(n, id);
if (result != nullptr)
{
return result;
}

auto type = m_archi->getTypeInfoFactory().build(n);

if (!type.has_value())
Expand Down

0 comments on commit c137ba0

Please sign in to comment.