Skip to content
This repository was archived by the owner on Jul 4, 2025. It is now read-only.

Commit 764164e

Browse files
chore: remove unused headers and code cleanup
1 parent 7c3788d commit 764164e

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

engine/utils/hardware/gguf/ggml.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
#include <stdint.h>
33
#include <string>
44
#include <unordered_map>
5-
#include "utils/result.hpp"
65

76
namespace hardware {
87
enum GGMLType {

engine/utils/hardware/gguf/gguf_file.h

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,6 @@ enum GGUFMetadataValueType : uint32_t {
6363
GGUFMetadataValueTypeUint64,
6464
GGUFMetadataValueTypeInt64,
6565
GGUFMetadataValueTypeFloat64,
66-
_GGUFMetadataValueTypeCount // Unknown
6766
};
6867

6968
struct GGUFMetadataKV {
@@ -293,10 +292,9 @@ struct GGUFHelper {
293292

294293
std::string ReadString() {
295294
auto l = Read<uint64_t>();
296-
std::string res(reinterpret_cast<const char*>(data), l);
297-
auto r = res;
295+
std::string result(reinterpret_cast<const char*>(data), l);
298296
data += l;
299-
return r;
297+
return result;
300298
}
301299

302300
GGUFMetadataKVArrayValue ReadArray() {

0 commit comments

Comments
 (0)