Skip to content

Commit 8f1bbb4

Browse files
committed
ref: remove unused variable
1 parent f29a7ca commit 8f1bbb4

5 files changed

Lines changed: 7 additions & 25 deletions

File tree

.vscode/settings.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
"stat.h": "c",
88
"stdarg.h": "c",
99
"string.h": "c",
10-
"utils.h": "c"
10+
"utils.h": "c",
11+
"cli.h": "c",
12+
"cstdlib": "c"
1113
}
1214
}

include/banner.h

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
#ifndef BANNER_H
2-
#define BANNER_H
3-
41
#include <stdio.h>
52

63
static inline void print_banner(void) {
@@ -17,6 +14,4 @@ static inline void print_banner(void) {
1714
printf("|_| |_|\\__,_|_| |_|\\__,_|\\__, |\\___|_| \n");
1815
printf(" |___/ \n");
1916
printf("\n");
20-
}
21-
22-
#endif // BANNER_H
17+
}

include/cli.h

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
#ifndef CLI_H
2-
#define CLI_H
3-
41
#include <stdbool.h>
52

63
// Command types supported by the NotesCLI
@@ -24,6 +21,4 @@ typedef struct {
2421
void print_usage(void);
2522
command_args_t parse_arguments(int argc, char *argv[]);
2623
bool validate_category(const char *category);
27-
bool confirm_action(const char *message);
28-
29-
#endif // CLI_H
24+
bool confirm_action(const char *message);

include/file_ops.h

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
#ifndef FILE_OPS_H
2-
#define FILE_OPS_H
3-
41
#include <stdbool.h>
52

63
// Function declarations for file operations
@@ -12,6 +9,4 @@ bool delete_document(const char *category, const char *filename);
129
// Helper functions
1310
bool ensure_category_dir(const char *category);
1411
char *get_full_path(const char *category, const char *filename);
15-
bool file_exists(const char *path);
16-
17-
#endif // FILE_OPS_H
12+
bool file_exists(const char *path);

include/utils.h

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
#ifndef UTILS_H
2-
#define UTILS_H
3-
41
#include <stdbool.h>
52

63
// Constants
@@ -28,6 +25,4 @@ char *get_timestamp_string(void);
2825
bool ensure_versions_dir(void);
2926
bool ensure_logs_dir(void);
3027
bool log_operation(operation_type_t op_type, const char *category, const char *filename);
31-
const char *get_operation_name(operation_type_t op_type);
32-
33-
#endif // UTILS_H
28+
const char *get_operation_name(operation_type_t op_type);

0 commit comments

Comments
 (0)