Skip to content

Commit 90fc7f5

Browse files
committed
diff: remove unused macros DIFF_FLAG_*
In commit 9be638e (git_diff_generated: abstract generated diffs, 2016-04-19), the code for generated diffs was moved out of the generic "diff.c" and instead into its own module. During that conversion, it was forgotten to remove the macros `DIFF_FLAG_IS_SET`, `DIFF_FLAG_ISNT_SET` and `DIFF_FLAG_SET`, which are now only used in "diff_generated.c". Remove those macros now.
1 parent a9b6667 commit 90fc7f5

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

src/diff.c

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,6 @@
1313
#include "commit.h"
1414
#include "index.h"
1515

16-
#define DIFF_FLAG_IS_SET(DIFF,FLAG) \
17-
(((DIFF)->opts.flags & (FLAG)) != 0)
18-
#define DIFF_FLAG_ISNT_SET(DIFF,FLAG) \
19-
(((DIFF)->opts.flags & (FLAG)) == 0)
20-
#define DIFF_FLAG_SET(DIFF,FLAG,VAL) (DIFF)->opts.flags = \
21-
(VAL) ? ((DIFF)->opts.flags | (FLAG)) : ((DIFF)->opts.flags & ~(VAL))
22-
2316
struct patch_id_args {
2417
git_hash_ctx ctx;
2518
git_oid result;

0 commit comments

Comments
 (0)