use std::move_only_function

C++23 has a replacement for function2 in std::move_only_function.
Leverage that and remove the extra dependency.

Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Change-Id: I69fa59627b91fc1f640f7a688926bed7f138ca19
diff --git a/bmc/meson.build b/bmc/meson.build
index 461d03c..3d9e5e6 100644
--- a/bmc/meson.build
+++ b/bmc/meson.build
@@ -1,7 +1,7 @@
 bmc_inc = include_directories('.')
 
 common_pre = declare_dependency(
-  dependencies: [function2_dep, json_dep],
+  dependencies: [json_dep],
   include_directories: [root_inc, bmc_inc])
 
 common_lib = static_library(