aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTharre <tharre3@gmail.com>2015-01-15 22:10:15 +0100
committerTharre <tharre3@gmail.com>2015-01-15 22:11:07 +0100
commitc4e63a609febbb60b39cbede7b3ce96cf6ab7ed7 (patch)
treec07cb3100c7c6ca08c64c2c93c734e12ccdddf4b /src
parent7bfb57149818404e10610b1fa1f05989a8fc1b06 (diff)
downloadredo-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.c6
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+");