summaryrefslogtreecommitdiffhomepage
path: root/minicc.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'minicc.cpp')
-rw-r--r--minicc.cpp14
1 files changed, 0 insertions, 14 deletions
diff --git a/minicc.cpp b/minicc.cpp
index a843254..9f5e906 100644
--- a/minicc.cpp
+++ b/minicc.cpp
@@ -4,7 +4,6 @@
#include "minicc.h"
#include <boost/algorithm/string.hpp>
-#include <boost/endian/conversion.hpp>
#include <algorithm>
#include <cctype>
@@ -65,16 +64,3 @@ std::string demangle(const std::type_info& type)
{
return boost::core::demangle(type.name());
}
-
-std::vector<uint8_t> to_little_endian(uint32_t value)
-{
- std::vector<uint8_t> result(size_t(4));
- *(reinterpret_cast<uint32_t*>(result.data())) = boost::endian::native_to_little(value);
- return result;
-}
-
-uint32_t from_little_endian(const std::vector<uint8_t>& value)
-{
- return boost::endian::little_to_native(*(reinterpret_cast<const uint32_t*>(value.data())));
-}
-