Include cleanup.

This commit is contained in:
chriseth
2019-03-28 14:32:48 +01:00
parent 20ae3ad555
commit f2cee9ec0c
18 changed files with 37 additions and 36 deletions
+1 -1
View File
@@ -24,7 +24,7 @@
#pragma once
#include "Exceptions.h"
#include <libdevcore/Exceptions.h>
namespace dev
{
+5 -3
View File
@@ -19,7 +19,11 @@
* @date 2014
*/
#include "CommonIO.h"
#include <libdevcore/CommonIO.h>
#include <libdevcore/Assertions.h>
#include <boost/filesystem.hpp>
#include <iostream>
#include <cstdlib>
#include <fstream>
@@ -29,8 +33,6 @@
#include <unistd.h>
#include <termios.h>
#endif
#include <boost/filesystem.hpp>
#include "Assertions.h"
using namespace std;
using namespace dev;
+2 -2
View File
@@ -23,10 +23,10 @@
#pragma once
#include <libdevcore/Common.h>
#include <boost/filesystem.hpp>
#include <sstream>
#include <string>
#include <boost/filesystem.hpp>
#include "Common.h"
namespace dev
{
+2 -2
View File
@@ -19,9 +19,9 @@
* @date 2018
*/
#include "JSON.h"
#include <libdevcore/JSON.h>
#include "CommonIO.h"
#include <libdevcore/CommonIO.h>
#include <sstream>
#include <map>
+1 -1
View File
@@ -21,7 +21,7 @@
* String routines
*/
#include "StringUtils.h"
#include <libdevcore/StringUtils.h>
#include <algorithm>
#include <string>
#include <vector>
+3 -5
View File
@@ -21,12 +21,10 @@
* UTF-8 related helpers
*/
#include "UTF8.h"
#include <libdevcore/UTF8.h>
namespace dev
{
namespace
{
@@ -77,6 +75,8 @@ bool isWellFormed(unsigned char byte1, unsigned char byte2)
return false;
}
}
bool validateUTF8(unsigned char const* _input, size_t _length, size_t& _invalidPosition)
{
bool valid = true;
@@ -133,8 +133,6 @@ bool validateUTF8(unsigned char const* _input, size_t _length, size_t& _invalidP
return false;
}
}
bool validateUTF8(std::string const& _input, size_t& _invalidPosition)
{
return validateUTF8(reinterpret_cast<unsigned char const*>(_input.c_str()), _input.length(), _invalidPosition);