summaryrefslogtreecommitdiff
path: root/grep.c
diff options
context:
space:
mode:
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>2018-11-03 08:48:43 (GMT)
committerJunio C Hamano <gitster@pobox.com>2018-11-05 04:42:11 (GMT)
commit4002e87cb254298fa2f44b98ee1b618bda0e8b59 (patch)
treeb6ce53021d61401a937b772f5dfd87806dc8d5f2 /grep.c
parent2e1b141a0132ad3afe2c81e43c4d2c9d394f5b1a (diff)
downloadgit-4002e87cb254298fa2f44b98ee1b618bda0e8b59.zip
git-4002e87cb254298fa2f44b98ee1b618bda0e8b59.tar.gz
git-4002e87cb254298fa2f44b98ee1b618bda0e8b59.tar.bz2
grep: remove #ifdef NO_PTHREADS
This is a faithful conversion without attempting to improve anything. That comes later. Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'grep.c')
-rw-r--r--grep.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/grep.c b/grep.c
index f6bd89e..4db1510 100644
--- a/grep.c
+++ b/grep.c
@@ -1513,7 +1513,6 @@ static void show_line(struct grep_opt *opt, char *bol, char *eol,
}
}
-#ifndef NO_PTHREADS
int grep_use_locks;
/*
@@ -1539,11 +1538,6 @@ static inline void grep_attr_unlock(void)
*/
pthread_mutex_t grep_read_mutex;
-#else
-#define grep_attr_lock()
-#define grep_attr_unlock()
-#endif
-
static int match_funcname(struct grep_opt *opt, struct grep_source *gs, char *bol, char *eol)
{
xdemitconf_t *xecfg = opt->priv;