diff options
author | Evan Martin <martine@danga.com> | 2012-01-05 04:03:37 (GMT) |
---|---|---|
committer | Evan Martin <martine@danga.com> | 2012-01-05 04:04:11 (GMT) |
commit | ad9dcd80afce68435616bc42bbc91c431e71cabe (patch) | |
tree | a3d93c34419e9fb36a50ff7e7af349f80b4bbca2 | |
parent | 77e215dcc598647103d1671383b843db3d4536f6 (diff) | |
download | Ninja-ad9dcd80afce68435616bc42bbc91c431e71cabe.zip Ninja-ad9dcd80afce68435616bc42bbc91c431e71cabe.tar.gz Ninja-ad9dcd80afce68435616bc42bbc91c431e71cabe.tar.bz2 |
remove build_log v1/v2 code
-rw-r--r-- | src/build_log.cc | 38 |
1 files changed, 14 insertions, 24 deletions
diff --git a/src/build_log.cc b/src/build_log.cc index b4435ba..df09ece 100644 --- a/src/build_log.cc +++ b/src/build_log.cc @@ -135,32 +135,22 @@ bool BuildLog::Load(const string& path, string* err) { int start_time = 0, end_time = 0; time_t restat_mtime = 0; - if (log_version == 1) { - // In v1 we logged how long the command took; we don't use this info. - // int time_ms = atoi(start); - start = end + 1; - } else { - // In v2 we log the start time and the end time. - start_time = atoi(start); - start = end + 1; + start_time = atoi(start); + start = end + 1; - char* end = strchr(start, field_separator); - if (!end) - continue; - *end = 0; - end_time = atoi(start); - start = end + 1; - } + char* end = strchr(start, field_separator); + if (!end) + continue; + *end = 0; + end_time = atoi(start); + start = end + 1; - if (log_version >= 3) { - // In v3 we log the restat mtime. - char* end = strchr(start, field_separator); - if (!end) - continue; - *end = 0; - restat_mtime = atol(start); - start = end + 1; - } + char* end = strchr(start, field_separator); + if (!end) + continue; + *end = 0; + restat_mtime = atol(start); + start = end + 1; end = strchr(start, field_separator); if (!end) |