Removed unused files IsBigEndian.hpp and rangealgorithm.hpp (#3776)

util/IsBigEndian.hpp and util/rangealgorithm.hpp have been unused for a long time, removing them from the codebase because git keeps the history forever anyway!
This commit is contained in:
Kasia
2022-05-29 12:19:26 +02:00
committed by GitHub
parent 74ec310228
commit 8b98f0e142
5 changed files with 0 additions and 51 deletions
-13
View File
@@ -1,13 +0,0 @@
#pragma once
namespace chatterino {
bool isBigEndian()
{
int test = 1;
char *p = reinterpret_cast<char *>(&test);
return p[0] == 0;
}
} // namespace chatterino
-22
View File
@@ -1,22 +0,0 @@
#pragma once
#include <algorithm>
namespace chatterino {
namespace util {
template <typename Container, typename UnaryPredicate>
typename Container::iterator find_if(Container &container,
UnaryPredicate pred)
{
return std::find_if(container.begin(), container.end(), pred);
}
template <typename Container, typename UnaryPredicate>
bool any_of(Container &container, UnaryPredicate pred)
{
return std::any_of(container.begin(), container.end(), pred);
}
} // namespace util
} // namespace chatterino