Kitzunu
2021-01-10 14:27:55 +01:00
committed by GitHub
parent 7cf097eab2
commit da4edd547d
315 changed files with 3 additions and 729 deletions

View File

@@ -23,7 +23,6 @@ class DynamicMapTree
DynTreeImpl* impl;
public:
DynamicMapTree();
~DynamicMapTree();

View File

@@ -42,7 +42,6 @@ template<class T,
class RegularGrid2D
{
public:
enum
{
CELL_NUMBER = 64,

View File

@@ -42,7 +42,6 @@ namespace VMAP
{
private:
public:
static bool collisionLocationForMovingPointFixedAABox(
const G3D::Vector3& origin,
const G3D::Vector3& dir,
@@ -50,7 +49,6 @@ namespace VMAP
G3D::Vector3& location,
bool& Inside)
{
// Integer representation of a floating-point value.
#define IR(x) (reinterpret_cast<G3D::uint32 const&>(x))

View File

@@ -85,6 +85,5 @@ public:
private:
struct bignum_st* _bn;
};
#endif

View File

@@ -71,7 +71,6 @@ public:
DBCFileLoader& file;
friend class DBCFileLoader;
};
// Get record by id

View File

@@ -216,7 +216,6 @@ public:
}
private:
void Enqueue(SQLOperation* op)
{
_queue->enqueue(op);

View File

@@ -18,7 +18,6 @@ class Field
friend class PreparedResultSet;
public:
[[nodiscard]] bool GetBool() const // Wrapper, actually gets integer
{
return (GetUInt8() == 1);
@@ -224,7 +223,6 @@ public:
}
#endif
return static_cast<char const*>(data.value);
}
[[nodiscard]] std::string GetString() const

View File

@@ -307,7 +307,6 @@ bool MySQLConnection::_Query(PreparedStatement* stmt, MYSQL_RES** pResult, uint6
*pFieldCount = mysql_stmt_field_count(msql_STMT);
return true;
}
}

View File

@@ -40,7 +40,6 @@ public:
SQLQueryHolderTask(SQLQueryHolder* holder, QueryResultHolderFuture res)
: m_holder(holder), m_result(res) { };
bool Execute() override;
};
#endif
#endif

View File

@@ -93,7 +93,6 @@ private:
void FreeBindBuffer();
void CleanUp();
bool _NextRow();
};
typedef std::shared_ptr<PreparedResultSet> PreparedQueryResult;

View File

@@ -48,7 +48,6 @@ inline LPTSTR ErrorMessage(DWORD dw)
sprintf(msgBuf, "Unknown error: %u", dw);
return msgBuf;
}
}
//============================== Global Variables =============================
@@ -794,7 +793,6 @@ void WheatyExceptionReport::WriteStackDetails(
&sip.si)) // Address of the SYMBOL_INFO structure (inside "sip" object)
{
Log(_T("%hs+%I64X"), sip.si.Name, symDisplacement);
}
else // No symbol found. Print out the logical address instead.
{
@@ -837,7 +835,6 @@ void WheatyExceptionReport::WriteStackDetails(
Log(_T("\r\n"));
}
}
}
//////////////////////////////////////////////////////////////////////////////
@@ -853,7 +850,6 @@ BOOL CALLBACK WheatyExceptionReport::EnumerateSymbolsCallback(
{
ClearSymbols();
FormatSymbolValue(pSymInfo, (STACKFRAME64*)UserContext);
}
__except (EXCEPTION_EXECUTE_HANDLER)
{

View File

@@ -134,7 +134,6 @@ struct SymbolDetail
class WheatyExceptionReport
{
public:
WheatyExceptionReport();
~WheatyExceptionReport();
@@ -196,7 +195,6 @@ private:
static void PushSymbolDetail();
static void PopSymbolDetail();
static void PrintSymbolDetail();
};
extern WheatyExceptionReport g_WheatyExceptionReport; // global instance of class

View File

@@ -367,7 +367,6 @@ public:
lt.tm_year = ((packedDate >> 24) & 0x1F) + 100;
return uint32(mktime(&lt));
}
ByteBuffer& ReadPackedTime(uint32& time)

View File

@@ -28,7 +28,6 @@ namespace ACE_Based
volatile bool _canceled{false};
public:
//! Create a LockedQueue.
LockedQueue()

View File

@@ -23,7 +23,6 @@ private:
std::atomic<bool> _shutdown;
public:
ProducerConsumerQueue<T>() : _shutdown(false) { }
void Push(const T& value)

View File

@@ -20,7 +20,6 @@ namespace acore
class GeneralLock
{
public:
GeneralLock(MUTEX& m)
: i_mutex(m)
{
@@ -33,7 +32,6 @@ namespace acore
}
private:
GeneralLock(const GeneralLock&);
GeneralLock& operator=(const GeneralLock&);
MUTEX& i_mutex;
@@ -43,7 +41,6 @@ namespace acore
class SingleThreaded
{
public:
struct Lock // empty object
{
Lock()
@@ -63,7 +60,6 @@ namespace acore
class ObjectLevelLockable
{
public:
ObjectLevelLockable()
: i_mtx()
{
@@ -74,19 +70,16 @@ namespace acore
class Lock
{
public:
Lock(ObjectLevelLockable<T, MUTEX>& host)
: i_lock(host.i_mtx)
{
}
private:
GeneralLock<MUTEX> i_lock;
};
private:
// prevent the compiler creating a copy construct
ObjectLevelLockable(const ObjectLevelLockable<T, MUTEX>&);
ObjectLevelLockable<T, MUTEX>& operator=(const ObjectLevelLockable<T, MUTEX>&);
@@ -98,7 +91,6 @@ namespace acore
class ClassLevelLockable
{
public:
ClassLevelLockable()
{
}
@@ -108,7 +100,6 @@ namespace acore
class Lock
{
public:
Lock(const T& /*host*/)
{
ClassLevelLockable<T, MUTEX>::si_mtx.lock();
@@ -131,7 +122,6 @@ namespace acore
};
private:
static MUTEX si_mtx;
};
}

View File

@@ -102,7 +102,6 @@ bool WinServiceInstall()
&sfa); // new data
CloseServiceHandle(service);
}
}
CloseServiceHandle(serviceControlManager);

View File

@@ -51,7 +51,6 @@ inline uint32 GetMSTimeDiffToNow(uint32 oldMSTime)
struct IntervalTimer
{
public:
IntervalTimer()
{
@@ -96,7 +95,6 @@ public:
}
private:
time_t _interval{0};
time_t _current{0};
};
@@ -104,7 +102,6 @@ private:
struct TimeTracker
{
public:
TimeTracker(time_t expiry)
: i_expiryTime(expiry)
{
@@ -131,14 +128,12 @@ public:
}
private:
time_t i_expiryTime;
};
struct TimeTrackerSmall
{
public:
TimeTrackerSmall(uint32 expiry = 0)
: i_expiryTime(expiry)
{
@@ -165,14 +160,12 @@ public:
}
private:
int32 i_expiryTime;
};
struct PeriodicTimer
{
public:
PeriodicTimer(int32 period, int32 start_time)
: i_period(period), i_expireTime(start_time)
{
@@ -199,7 +192,6 @@ public:
void TReset(int32 diff, int32 period) { i_expireTime += period > diff ? period : diff; }
private:
int32 i_period;
int32 i_expireTime;
};

View File

@@ -172,7 +172,6 @@ void stripLineInvisibleChars(std::string& str)
str.erase(wpos, str.size());
if (str.find("|TInterface") != std::string::npos)
str.clear();
}
std::string secsToTimeString(uint64 timeInSecs, bool shortText)