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

Commit e67ff4f

Browse files
chore: remove unused headers and code cleanup
1 parent ce5cbe8 commit e67ff4f

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
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 & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424

2525
#include "ggml.h"
2626
#include "utils/logging_utils.h"
27-
#include "utils/string_utils.h"
2827

2928
// #define GGUF_LOG(msg) \
3029
// do { \
@@ -62,7 +61,6 @@ enum GGUFMetadataValueType : uint32_t {
6261
GGUFMetadataValueTypeUint64,
6362
GGUFMetadataValueTypeInt64,
6463
GGUFMetadataValueTypeFloat64,
65-
_GGUFMetadataValueTypeCount // Unknown
6664
};
6765

6866
struct GGUFMetadataKV {
@@ -292,10 +290,9 @@ struct GGUFHelper {
292290

293291
std::string ReadString() {
294292
auto l = Read<uint64_t>();
295-
std::string res(reinterpret_cast<const char*>(data), l);
296-
auto r = res;
293+
std::string result(reinterpret_cast<const char*>(data), l);
297294
data += l;
298-
return r;
295+
return result;
299296
}
300297

301298
GGUFMetadataKVArrayValue ReadArray() {

0 commit comments

Comments
 (0)