aboutsummaryrefslogtreecommitdiff
path: root/boot/result.cc
diff options
context:
space:
mode:
Diffstat (limited to 'boot/result.cc')
-rw-r--r--boot/result.cc33
1 files changed, 0 insertions, 33 deletions
diff --git a/boot/result.cc b/boot/result.cc
index 635a121..c8ea267 100644
--- a/boot/result.cc
+++ b/boot/result.cc
@@ -17,7 +17,6 @@ along with GCC; see the file COPYING3. If not see
#include "elna/boot/result.h"
-#include <algorithm>
#include <charconv>
#include <cmath>
#include <cstring>
@@ -115,27 +114,6 @@ namespace elna::boot
return this->m_name == that;
}
- identifier_definition::identifier_definition(const std::string& name,
- const source_position& position, const bool exported)
- : m_identifier(name, position), m_exported(exported)
- {
- }
-
- const std::string& identifier_definition::name() const
- {
- return this->m_identifier.name();
- }
-
- const identifier& identifier_definition::id() const
- {
- return this->m_identifier;
- }
-
- bool identifier_definition::exported() const
- {
- return this->m_exported;
- }
-
std::optional<diagnostic_note> previous_declaration_note(
const std::optional<source_position>& original, std::string_view label,
const std::filesystem::path& file)
@@ -159,17 +137,6 @@ namespace elna::boot
return diagnostic_note{ .message = join(identifiers), .position = position_span, .file = {} };
}
- std::vector<identifier> extract_identifiers(const std::vector<identifier_definition>& identifiers)
- {
- std::vector<identifier> result;
- result.reserve(identifiers.size());
-
- std::ranges::transform(identifiers, std::back_inserter(result),
- [](const auto& identifier) { return identifier.id(); });
-
- return result;
- }
-
integer_literal::integer_literal(bool is_signed, std::size_t size)
: m_signed(is_signed), m_size(size)
{