diff --git a/bin/meson.build b/bin/meson.build index fb156bf..1b58957 100644 --- a/bin/meson.build +++ b/bin/meson.build @@ -1,5 +1,3 @@ -deps += hack_dep - executable( 'hack', 'main.cpp', dependencies : deps, diff --git a/src/meson.build b/src/meson.build index 1642bd7..01581b5 100644 --- a/src/meson.build +++ b/src/meson.build @@ -6,12 +6,3 @@ subdir('logger') deps += string_dep deps += logger_dep -lib = library( - 'hack', - include_directories : inc, -) - -hack_dep = declare_dependency( - include_directories: inc, - link_with: lib -) diff --git a/src/utils/utils.hpp b/src/utils/utils.hpp index 3bbc590..86afe66 100644 --- a/src/utils/utils.hpp +++ b/src/utils/utils.hpp @@ -1,6 +1,7 @@ #pragma once #include +#include namespace hack::utils { @@ -24,20 +25,3 @@ namespace hack::utils }; } } - - - // std::map, Result> cache; - // - // return [f, cache](Args... args) mutable -> Result - // { - // const auto args_tuple = std::make_tuple(args...); - // const auto cached = cache.find(args_tuple); - // - // if (cached == cache.end()) - // { - // auto result = f(args...); - // cache[args_tuple] = result; - // return result; - // } - // else - // return cached->second diff --git a/tests/meson.build b/tests/meson.build index 2bdafb8..250798e 100644 --- a/tests/meson.build +++ b/tests/meson.build @@ -6,7 +6,7 @@ test( executable( 'split_str', 'string.cpp', - dependencies: [ string_dep, gtest_dep ] + dependencies: [ deps, gtest_dep ] ) ) @@ -15,7 +15,7 @@ test( executable( 'within', 'range.cpp', - dependencies: [ hack_dep, gtest_dep ] + dependencies: [ deps, gtest_dep ] ) ) @@ -24,6 +24,6 @@ test( executable( 'container', 'container.cpp', - dependencies: [ hack_dep, gtest_dep ] + dependencies: [ deps, gtest_dep ] ) )