remove unneeded method

This commit is contained in:
Dennis Luxen 2015-01-05 14:46:38 +01:00
parent 2240d3d0d1
commit f43d380fe2

View File

@ -30,8 +30,9 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#include <boost/algorithm/string.hpp> #include <boost/algorithm/string.hpp>
#include <cstdio>
#include <cctype> #include <cctype>
#include <random>
#include <string> #include <string>
#include <vector> #include <vector>
@ -146,20 +147,4 @@ inline std::size_t URIDecode(const std::string &input, std::string &output)
inline std::size_t URIDecodeInPlace(std::string &URI) { return URIDecode(URI, URI); } inline std::size_t URIDecodeInPlace(std::string &URI) { return URIDecode(URI, URI); }
inline std::string GetRandomString()
{
std::string s;
s.resize(128);
static const char alphanum[] = "0123456789"
"ABCDEFGHIJKLMNOPQRSTUVWXYZ"
"abcdefghijklmnopqrstuvwxyz";
for (std::size_t i = 0; i < 127; ++i)
{
s[i] = alphanum[rand() % (sizeof(alphanum) - 1)];
}
s[127] = 0;
return s;
}
#endif // STRING_UTIL_HPP #endif // STRING_UTIL_HPP