From 15eea63a6e7da37e7b4d643f189e6de150268ff8 Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Mon, 6 Jun 2022 11:33:17 +0200 Subject: Checking for dirty object files in link targets (ar, ld and so) redundant (already handled by Task baseclass). --- src/task_ar.cc | 9 --------- src/task_ld.cc | 9 --------- src/task_so.cc | 9 --------- 3 files changed, 27 deletions(-) diff --git a/src/task_ar.cc b/src/task_ar.cc index d4a4447..0763c04 100644 --- a/src/task_ar.cc +++ b/src/task_ar.cc @@ -67,15 +67,6 @@ bool TaskAR::dirtyInner() return true; } - for(const auto& objectFile : objectFiles) - { - if(std::filesystem::last_write_time(targetFile) <= - std::filesystem::last_write_time(objectFile)) - { - return true; - } - } - { auto lastFlags = readFile(flagsFile.string()); if(flagsString() != lastFlags) diff --git a/src/task_ld.cc b/src/task_ld.cc index 82c26a9..918fdee 100644 --- a/src/task_ld.cc +++ b/src/task_ld.cc @@ -86,15 +86,6 @@ bool TaskLD::dirtyInner() return true; } - for(const auto& objectFile : objectFiles) - { - if(std::filesystem::last_write_time(targetFile) <= - std::filesystem::last_write_time(objectFile)) - { - return true; - } - } - { auto lastFlags = readFile(flagsFile.string()); if(flagsString() != lastFlags) diff --git a/src/task_so.cc b/src/task_so.cc index bf47e05..430c3e1 100644 --- a/src/task_so.cc +++ b/src/task_so.cc @@ -67,15 +67,6 @@ bool TaskSO::dirtyInner() return true; } - for(const auto& objectFile : objectFiles) - { - if(std::filesystem::last_write_time(targetFile) <= - std::filesystem::last_write_time(objectFile)) - { - return true; - } - } - { auto lastFlags = readFile(flagsFile.string()); if(flagsString() != lastFlags) -- cgit v1.2.3