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
#include "Define.h"
#include <array>
enum AuthResult
{

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@@ -23,6 +23,7 @@
#include "DatabaseEnv.h"
#include "Errors.h"
#include "Log.h"
#include "QueryResult.h"
#include "SharedDefines.h"
#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__
#include "BigNumber.h"
#include "Common.h"
#include "Log.h"
#include "Optional.h"
#include <array>