From c4e63a609febbb60b39cbede7b3ce96cf6ab7ed7 Mon Sep 17 00:00:00 2001 From: Tharre Date: Thu, 15 Jan 2015 22:10:15 +0100 Subject: Remove unecessary check for NULL from add_dep() --- src/build.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/build.c b/src/build.c index 70239e2..2cf7581 100644 --- a/src/build.c +++ b/src/build.c @@ -339,12 +339,8 @@ static char *get_dep_path(const char *target) { return dep_path; } -/* Add the dependency target, with the identifier ident. If parent is NULL, the - * value of the environment variable REDO_PARENT will be taken instead. */ +/* Add the dependency target, with the identifier ident. */ void add_dep(const char *target, const char *parent, int ident) { - if (!parent) - parent = getenv("REDO_PARENT_TARGET"); - char *dep_path = get_dep_path(parent); FILE *fp = fopen(dep_path, "rb+"); -- cgit v1.2.3-70-g09d2