From 99d9aa25083568c56cf584c8ee40d467268296c5 Mon Sep 17 00:00:00 2001 From: falkTX Date: Sat, 3 Feb 2024 21:16:19 +0100 Subject: [PATCH] Remove unused set_cpu_affinity, cleanup Signed-off-by: falkTX --- modtools/utils.py | 9 --------- utils/utils.h | 3 --- utils/utils_lilv.cpp | 15 ++------------- 3 files changed, 2 insertions(+), 25 deletions(-) diff --git a/modtools/utils.py b/modtools/utils.py index a6d53734..de3ed8d5 100644 --- a/modtools/utils.py +++ b/modtools/utils.py @@ -616,9 +616,6 @@ class JackData(Structure): utils.file_uri_parse.argtypes = (c_char_p,) utils.file_uri_parse.restype = c_char_p -utils.set_cpu_affinity.argtypes = (c_int,) -utils.set_cpu_affinity.restype = None - utils.init_jack.argtypes = None utils.init_jack.restype = c_bool @@ -918,12 +915,6 @@ def get_bundle_dirname(bundleuri): return bundle -# ------------------------------------------------------------------------------------------------------------ -# helper utilities - -def set_cpu_affinity(cpu): - utils.set_cpu_affinity(cpu) - # ------------------------------------------------------------------------------------------------------------ # jack stuff diff --git a/utils/utils.h b/utils/utils.h index 0affa3f0..2f2473d9 100644 --- a/utils/utils.h +++ b/utils/utils.h @@ -427,9 +427,6 @@ MOD_API const char* const* list_plugins_in_bundle(const char* bundle); // Convert a file URI to a local path string. MOD_API const char* file_uri_parse(const char* fileuri); -// helper utilities -MOD_API void set_cpu_affinity(int cpu); - // jack stuff MOD_API bool init_jack(void); MOD_API void close_jack(void); diff --git a/utils/utils_lilv.cpp b/utils/utils_lilv.cpp index d63ec23d..a18af187 100644 --- a/utils/utils_lilv.cpp +++ b/utils/utils_lilv.cpp @@ -242,7 +242,7 @@ inline bool contains(const std::unordered_map& map, const std::s return map.find(value) != map.end(); } -inline bool ends_with(const std::string& value, const std::string ending) +inline bool ends_with(const std::string& value, const std::string& ending) { if (ending.size() > value.size()) return false; @@ -267,7 +267,7 @@ inline std::string sha1(const char* const cstring) uint8_t* const hashenc = sha1_result(&s); for (int i=0; i