Skip to content

Commit 99f97b5

Browse files
committed
fix: remove unused
1 parent a193d37 commit 99f97b5

File tree

1 file changed

+0
-28
lines changed

1 file changed

+0
-28
lines changed

src/module.cpp

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -11,39 +11,11 @@
1111

1212
#include <plugify/assembly_loader.hpp>
1313

14-
#if __has_include(<stacktrace>)
15-
#include <stacktrace>
16-
#define HAS_STACKTRACE 1
17-
#else
18-
#define HAS_STACKTRACE 0
19-
#endif
20-
2114
#define LOG_PREFIX "[RUSTLM] "
2215

2316
using namespace rustlm;
2417
using namespace plugify;
2518

26-
namespace {
27-
std::vector<std::string_view> Split(std::string_view strv, std::string_view delims) {
28-
std::vector<std::string_view> output;
29-
size_t first = 0;
30-
31-
while (first < strv.size()) {
32-
const size_t second = strv.find_first_of(delims, first);
33-
34-
if (first != second)
35-
output.emplace_back(strv.substr(first, second-first));
36-
37-
if (second == std::string_view::npos)
38-
break;
39-
40-
first = second + 1;
41-
}
42-
43-
return output;
44-
}
45-
}
46-
4719
Result<InitData> RustLanguageModule::Initialize(const Provider& provider, [[maybe_unused]] const Extension& module) {
4820
_provider = std::make_unique<Provider>(provider);
4921

0 commit comments

Comments
 (0)