summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Steinhardt <ps@pks.im>2017-11-30 15:09:05 +0000
committerPatrick Steinhardt <ps@pks.im>2017-11-30 15:09:19 +0000
commit90fc7f5320976ae8b2d9fc0e5f55339bacfca1a6 (patch)
tree3b3725016d20fea692d408430cbc8627d00a2e32
parenta9b66677bc1fe9a39c2fa9e5421feaeb8a223299 (diff)
downloadlibgit2-90fc7f5320976ae8b2d9fc0e5f55339bacfca1a6.tar.gz
diff: remove unused macros `DIFF_FLAG_*`
In commit 9be638ecf (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.
-rw-r--r--src/diff.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/src/diff.c b/src/diff.c
index b2a5ff947..c7a652896 100644
--- a/src/diff.c
+++ b/src/diff.c
@@ -13,13 +13,6 @@
#include "commit.h"
#include "index.h"
-#define DIFF_FLAG_IS_SET(DIFF,FLAG) \
- (((DIFF)->opts.flags & (FLAG)) != 0)
-#define DIFF_FLAG_ISNT_SET(DIFF,FLAG) \
- (((DIFF)->opts.flags & (FLAG)) == 0)
-#define DIFF_FLAG_SET(DIFF,FLAG,VAL) (DIFF)->opts.flags = \
- (VAL) ? ((DIFF)->opts.flags | (FLAG)) : ((DIFF)->opts.flags & ~(VAL))
-
struct patch_id_args {
git_hash_ctx ctx;
git_oid result;