diff options
author | Tharre <tharre3@gmail.com> | 2015-01-15 22:10:15 +0100 |
---|---|---|
committer | Tharre <tharre3@gmail.com> | 2015-01-15 22:11:07 +0100 |
commit | c4e63a609febbb60b39cbede7b3ce96cf6ab7ed7 (patch) | |
tree | c07cb3100c7c6ca08c64c2c93c734e12ccdddf4b /src | |
parent | 7bfb57149818404e10610b1fa1f05989a8fc1b06 (diff) | |
download | redo-c4e63a609febbb60b39cbede7b3ce96cf6ab7ed7.tar.gz redo-c4e63a609febbb60b39cbede7b3ce96cf6ab7ed7.tar.xz redo-c4e63a609febbb60b39cbede7b3ce96cf6ab7ed7.zip |
Remove unecessary check for NULL from add_dep()
Diffstat (limited to 'src')
-rw-r--r-- | src/build.c | 6 |
1 files changed, 1 insertions, 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+"); |