aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/build.c13
-rwxr-xr-xtests/t0100-redo.t1
2 files changed, 0 insertions, 14 deletions
diff --git a/src/build.c b/src/build.c
index d601e42..9b24753 100644
--- a/src/build.c
+++ b/src/build.c
@@ -492,12 +492,6 @@ static int handle_c(dep_info *dep) {
goto exit2;
}
- errno = 0;
- long magic = strtol(ctx.fields[2], NULL, 10);
- if (errno) {
- retval = build_target(dep);
- goto exit;
- }
FILE *targetfd = fopen(dep->target, "rb");
if (!targetfd) {
@@ -513,13 +507,6 @@ static int handle_c(dep_info *dep) {
}
}
- if (magic == atoi(getenv("REDO_MAGIC"))) {
- /* magic number matches */
- fclose(targetfd);
- retval = 1;
- goto exit;
- }
-
struct stat curr_st;
if (sscanf(ctx.fields[1], "%lld.%ld", (long long*)&dep->ctime.tv_sec,
&dep->ctime.tv_nsec) < 2) {
diff --git a/tests/t0100-redo.t b/tests/t0100-redo.t
index b0bad3d..cc86d1b 100755
--- a/tests/t0100-redo.t
+++ b/tests/t0100-redo.t
@@ -30,7 +30,6 @@ EOF
test_expect_success "redo shortcuts" "
echo "s1" > s &&
redo a &&
- sleep 1 && # TODO: remove this as soon as REDO_MAGIC is fixed
echo "s2" > s &&
redo a
"