|
20 | 20 | #include <vix/cli/errors/ErrorPipeline.hpp> |
21 | 21 | #include <vix/cli/errors/RawLogDetectors.hpp> |
22 | 22 | #include <vix/cli/errors/build/BuildErrorDetectors.hpp> |
23 | | -#include <vix/utils/Env.hpp> |
24 | 23 |
|
25 | 24 | #include <algorithm> |
26 | | -#include <cstring> |
27 | 25 | #include <iostream> |
28 | 26 | #include <sstream> |
29 | 27 | #include <string> |
@@ -54,25 +52,6 @@ namespace |
54 | 52 | << "\n"; |
55 | 53 | } |
56 | 54 |
|
57 | | - vix::cli::build::BuildDiagnostic make_build_diagnostic( |
58 | | - const vix::cli::errors::CompilerError &err, |
59 | | - const std::string &contextMessage) |
60 | | - { |
61 | | - vix::cli::build::BuildDiagnostic diagnostic; |
62 | | - |
63 | | - diagnostic.title = contextMessage.empty() |
64 | | - ? "Build failed" |
65 | | - : contextMessage; |
66 | | - |
67 | | - diagnostic.error = err.message; |
68 | | - |
69 | | - diagnostic.location.file = err.file; |
70 | | - diagnostic.location.line = static_cast<std::size_t>(err.line); |
71 | | - diagnostic.location.column = static_cast<std::size_t>(err.column); |
72 | | - |
73 | | - return diagnostic; |
74 | | - } |
75 | | - |
76 | 55 | std::vector<std::string> read_code_frame_lines( |
77 | 56 | const fs::path &file, |
78 | 57 | std::size_t line, |
@@ -223,17 +202,6 @@ namespace |
223 | 202 | return true; |
224 | 203 | } |
225 | 204 |
|
226 | | - bool hints_verbose_enabled() noexcept |
227 | | - { |
228 | | - const char *level = vix::utils::vix_getenv("VIX_LOG_LEVEL"); |
229 | | - |
230 | | - if (!level || !*level) |
231 | | - return false; |
232 | | - |
233 | | - return std::strcmp(level, "debug") == 0 || |
234 | | - std::strcmp(level, "trace") == 0; |
235 | | - } |
236 | | - |
237 | 205 | std::size_t line_start(std::string_view text, std::size_t pos) |
238 | 206 | { |
239 | 207 | if (pos == std::string_view::npos) |
|
0 commit comments