refactor(src/server/apps|database|shared): remove unused imports (#19505)

This commit is contained in:
Francesco Borzì
2024-09-29 18:10:50 +02:00
committed by GitHub
parent 34a3b4ee47
commit 1ebb53a248
28 changed files with 5 additions and 25 deletions

View File

@@ -19,7 +19,6 @@
#define _AUTHCODES_H #define _AUTHCODES_H
#include "Define.h" #include "Define.h"
#include <array>
enum AuthResult enum AuthResult
{ {

View File

@@ -30,7 +30,6 @@
#include "DatabaseEnv.h" #include "DatabaseEnv.h"
#include "DatabaseLoader.h" #include "DatabaseLoader.h"
#include "DeadlineTimer.h" #include "DeadlineTimer.h"
#include "GitRevision.h"
#include "IPLocation.h" #include "IPLocation.h"
#include "IoContext.h" #include "IoContext.h"
#include "Log.h" #include "Log.h"

View File

@@ -23,7 +23,6 @@
#include "CryptoHash.h" #include "CryptoHash.h"
#include "CryptoRandom.h" #include "CryptoRandom.h"
#include "DatabaseEnv.h" #include "DatabaseEnv.h"
#include "Errors.h"
#include "IPLocation.h" #include "IPLocation.h"
#include "Log.h" #include "Log.h"
#include "RealmList.h" #include "RealmList.h"

View File

@@ -28,7 +28,6 @@
#include "SRP6.h" #include "SRP6.h"
#include "Socket.h" #include "Socket.h"
#include <boost/asio/ip/tcp.hpp> #include <boost/asio/ip/tcp.hpp>
#include <memory>
using boost::asio::ip::tcp; using boost::asio::ip::tcp;

View File

@@ -20,7 +20,6 @@
#include "Define.h" #include "Define.h"
#include <future> #include <future>
#include <mutex>
void process_message(struct soap* soap_message); void process_message(struct soap* soap_message);
void ACSoapThread(const std::string& host, uint16 port); void ACSoapThread(const std::string& host, uint16 port);

View File

@@ -18,11 +18,9 @@
#ifndef __RASESSION_H__ #ifndef __RASESSION_H__
#define __RASESSION_H__ #define __RASESSION_H__
#include "Common.h"
#include <boost/asio/ip/tcp.hpp> #include <boost/asio/ip/tcp.hpp>
#include <boost/asio/streambuf.hpp> #include <boost/asio/streambuf.hpp>
#include <future> #include <future>
#include <memory>
using boost::asio::ip::tcp; using boost::asio::ip::tcp;

View File

@@ -16,7 +16,6 @@
*/ */
#include "AdhocStatement.h" #include "AdhocStatement.h"
#include "Errors.h"
#include "MySQLConnection.h" #include "MySQLConnection.h"
#include "QueryResult.h" #include "QueryResult.h"

View File

@@ -25,7 +25,6 @@
#include "Implementation/LoginDatabase.h" #include "Implementation/LoginDatabase.h"
#include "Implementation/WorldDatabase.h" #include "Implementation/WorldDatabase.h"
#include "Field.h"
#include "PreparedStatement.h" #include "PreparedStatement.h"
#include "QueryCallback.h" #include "QueryCallback.h"
#include "QueryResult.h" #include "QueryResult.h"

View File

@@ -19,7 +19,6 @@
#define DatabaseEnvFwd_h__ #define DatabaseEnvFwd_h__
#include <future> #include <future>
#include <memory>
struct QueryResultFieldMetadata; struct QueryResultFieldMetadata;
class Field; class Field;

View File

@@ -20,7 +20,6 @@
#include "Log.h" #include "Log.h"
#include "MySQLHacks.h" #include "MySQLHacks.h"
#include "StringConvert.h" #include "StringConvert.h"
#include "Types.h"
Field::Field() Field::Field()
{ {

View File

@@ -18,7 +18,6 @@
#ifndef _FIELD_H #ifndef _FIELD_H
#define _FIELD_H #define _FIELD_H
#include "DatabaseEnvFwd.h"
#include "Define.h" #include "Define.h"
#include "Duration.h" #include "Duration.h"
#include <array> #include <array>

View File

@@ -20,7 +20,6 @@
#include "Log.h" #include "Log.h"
#include "MySQLHacks.h" #include "MySQLHacks.h"
#include "MySQLPreparedStatement.h" #include "MySQLPreparedStatement.h"
#include "MySQLWorkaround.h"
#include "PreparedStatement.h" #include "PreparedStatement.h"
#include "QueryResult.h" #include "QueryResult.h"
#include "StringConvert.h" #include "StringConvert.h"

View File

@@ -21,7 +21,6 @@
#include "DatabaseEnvFwd.h" #include "DatabaseEnvFwd.h"
#include "Define.h" #include "Define.h"
#include <map> #include <map>
#include <memory>
#include <mutex> #include <mutex>
#include <string> #include <string>
#include <vector> #include <vector>

View File

@@ -19,7 +19,6 @@
#include "Errors.h" #include "Errors.h"
#include "Log.h" #include "Log.h"
#include "MySQLConnection.h" #include "MySQLConnection.h"
#include "MySQLPreparedStatement.h"
#include "MySQLWorkaround.h" #include "MySQLWorkaround.h"
#include "QueryResult.h" #include "QueryResult.h"

View File

@@ -20,7 +20,6 @@
#include "Define.h" #include "Define.h"
#include "Duration.h" #include "Duration.h"
#include "Optional.h"
#include "SQLOperation.h" #include "SQLOperation.h"
#include <future> #include <future>
#include <tuple> #include <tuple>

View File

@@ -24,7 +24,6 @@
#include <future> #include <future>
#include <list> #include <list>
#include <queue> #include <queue>
#include <utility>
class AC_DATABASE_API QueryCallback class AC_DATABASE_API QueryCallback
{ {

View File

@@ -24,7 +24,6 @@
#include "StringFormat.h" #include "StringFormat.h"
#include <functional> #include <functional>
#include <mutex> #include <mutex>
#include <utility>
#include <vector> #include <vector>
/*! Transactions, high level class. */ /*! Transactions, high level class. */

View File

@@ -20,7 +20,6 @@
#include "Config.h" #include "Config.h"
#include "DatabaseEnv.h" #include "DatabaseEnv.h"
#include "DatabaseLoader.h" #include "DatabaseLoader.h"
#include "GitRevision.h"
#include "Log.h" #include "Log.h"
#include "StartProcess.h" #include "StartProcess.h"
#include "UpdateFetcher.h" #include "UpdateFetcher.h"

View File

@@ -25,6 +25,8 @@
#include <fstream> #include <fstream>
#include <sstream> #include <sstream>
#include "QueryResult.h"
using namespace std::filesystem; using namespace std::filesystem;
struct UpdateFetcher::DirectoryEntry struct UpdateFetcher::DirectoryEntry

View File

@@ -19,6 +19,7 @@
#define SCRIPT_OBJECT_PLAYER_SCRIPT_H_ #define SCRIPT_OBJECT_PLAYER_SCRIPT_H_
#include "ScriptObject.h" #include "ScriptObject.h"
#include "SharedDefines.h"
#include <vector> #include <vector>
// TODO to remove // TODO to remove

View File

@@ -18,6 +18,7 @@
#include "DBCDatabaseLoader.h" #include "DBCDatabaseLoader.h"
#include "DatabaseEnv.h" #include "DatabaseEnv.h"
#include "Errors.h" #include "Errors.h"
#include "QueryResult.h"
#include "StringFormat.h" #include "StringFormat.h"
DBCDatabaseLoader::DBCDatabaseLoader(char const* tableName, char const* dbcFormatString, std::vector<char*>& stringPool) DBCDatabaseLoader::DBCDatabaseLoader(char const* tableName, char const* dbcFormatString, std::vector<char*>& stringPool)

View File

@@ -19,7 +19,6 @@
#define DBCDatabaseLoader_h__ #define DBCDatabaseLoader_h__
#include "DBCFileLoader.h" #include "DBCFileLoader.h"
#include <string>
#include <vector> #include <vector>
struct DBCDatabaseLoader struct DBCDatabaseLoader

View File

@@ -19,7 +19,6 @@
#define DBCStorageIterator_h__ #define DBCStorageIterator_h__
#include "Define.h" #include "Define.h"
#include <iterator>
template <class T> template <class T>
class DBCStorageIterator class DBCStorageIterator

View File

@@ -20,7 +20,6 @@
#include "DBCEnums.h" #include "DBCEnums.h"
#include "Define.h" #include "Define.h"
#include "SharedDefines.h"
#include "Util.h" #include "Util.h"
#include <array> #include <array>
#include <map> #include <map>

View File

@@ -16,7 +16,6 @@
*/ */
#include "Realm.h" #include "Realm.h"
#include "IpAddress.h"
#include "IpNetwork.h" #include "IpNetwork.h"
#include <boost/asio/ip/tcp.hpp> #include <boost/asio/ip/tcp.hpp>

View File

@@ -22,7 +22,6 @@
#include "Realm.h" #include "Realm.h"
#include <array> #include <array>
#include <map> #include <map>
#include <unordered_set>
#include <vector> #include <vector>
struct RealmBuildInfo struct RealmBuildInfo

View File

@@ -23,6 +23,7 @@
#include "DatabaseEnv.h" #include "DatabaseEnv.h"
#include "Errors.h" #include "Errors.h"
#include "Log.h" #include "Log.h"
#include "QueryResult.h"
#include "SharedDefines.h" #include "SharedDefines.h"
#define SECRET_FLAG_FOR(key, val, server) server ## _ ## key = (val ## ull << (16*SERVER_PROCESS_ ## server)) #define SECRET_FLAG_FOR(key, val, server) server ## _ ## key = (val ## ull << (16*SERVER_PROCESS_ ## server))

View File

@@ -19,7 +19,6 @@
#define __ACORE_SECRETMGR_H__ #define __ACORE_SECRETMGR_H__
#include "BigNumber.h" #include "BigNumber.h"
#include "Common.h"
#include "Log.h" #include "Log.h"
#include "Optional.h" #include "Optional.h"
#include <array> #include <array>