Skip to content

Commit

Permalink
style: format again
Browse files Browse the repository at this point in the history
  • Loading branch information
futrime committed Jan 22, 2024
1 parent 6fc31f9 commit 4990146
Show file tree
Hide file tree
Showing 9 changed files with 2 additions and 11 deletions.
2 changes: 2 additions & 0 deletions .clang-format
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,6 @@ PointerAlignment: Left
TabWidth: 4
UseTab: Never
SortIncludes: CaseSensitive

IncludeBlocks: Regroup
MaxEmptyLinesToKeep: 1
1 change: 0 additions & 1 deletion src/api/GameUtilsAPI.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

#include "api/APIHelp.h"


ClassDefine<void> TextClassBuilder = defineClass("Format")
.property("Black", []() { return String::newString("§0"); })
.property("DarkBlue", []() { return String::newString("§1"); })
Expand Down
1 change: 0 additions & 1 deletion src/api/LlAPI.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
#include <map>
#include <string>


//////////////////// Classes ////////////////////

ClassDefine<void> LlClassBuilder = defineClass("ll")
Expand Down
2 changes: 0 additions & 2 deletions src/api/NativeAPI.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@

#include <magic_enum.hpp>


Concurrency::concurrent_unordered_map<std::string, NativeFunction> NativeFunction::parsedSymbol;

#define NATIVE_CHECK_ARG_TYPE(TYPE) \
Expand Down Expand Up @@ -483,7 +482,6 @@ char NativeFunction::nativeCallbackHandler(DCCallback* cb, DCArgs* args, DCValue
return NativeFunction::getTypeSignature(hookInfo->mReturnVal);
}


Local<Value> ScriptNativeFunction::setAddress(const Local<Value>& value) {
auto engine = this->getScriptEngine();
bool isNativePointer = engine->isInstanceOf<NativePointer>(value);
Expand Down
3 changes: 0 additions & 3 deletions src/api/PacketAPI.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
#include "mc/network/MinecraftPackets.h"
#include "mc/network/packet/Packet.h"


//////////////////// Class Definition ////////////////////

ClassDefine<PacketClass> PacketClassBuilder = defineClass<PacketClass>("LLSE_Packet")
Expand Down Expand Up @@ -117,7 +116,6 @@ Local<Object> BinaryStreamClass::newBinaryStream() {
return out->getScriptObject();
}


// member function

Local<Value> BinaryStreamClass::getAndReleaseData() {
Expand Down Expand Up @@ -215,7 +213,6 @@ Local<Value> BinaryStreamClass::writeFloat(const Arguments& args) {
CATCH("Fail in BinaryStream writeFloat!");
}


Local<Value> BinaryStreamClass::writeSignedBigEndianInt(const Arguments& args) {
CHECK_ARGS_COUNT(args, 1);
CHECK_ARG_TYPE(args[0], ValueKind::kNumber);
Expand Down
1 change: 0 additions & 1 deletion src/api/PlayerAPI.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,6 @@
#include <unordered_map>
#include <vector>


//////////////////// Class Definition ////////////////////

ClassDefine<PlayerClass> PlayerClassBuilder =
Expand Down
1 change: 0 additions & 1 deletion src/legacyapi/db/RowSet.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

#include <stdexcept>


namespace DB {

RowSet::RowSet(const std::shared_ptr<RowHeader>& header) : std::vector<Row>(), header(header) {
Expand Down
1 change: 0 additions & 1 deletion src/main/NodeJsHelper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
#include <uv/uv.h>
#include <v8/v8.h>


// pre-declare
extern void BindAPIs(ScriptEngine* engine);

Expand Down
1 change: 0 additions & 1 deletion src/main/PythonHelper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
#include <llapi/utils/WinHelper.h>
#include <tomlplusplus/toml.hpp>


#define PIP_EXECUTE_TIMEOUT 1800 * 1000

// pre-declare
Expand Down

0 comments on commit 4990146

Please sign in to comment.