Move getLastModified(), remove setPathDisplay()

This commit is contained in:
Eelco Dolstra 2023-10-20 12:40:46 +02:00
parent df10dc630f
commit bacceaea91
2 changed files with 9 additions and 9 deletions

View file

@ -16,6 +16,15 @@ class Store;
struct InputAccessor : SourceAccessor, std::enable_shared_from_this<InputAccessor>
{
/**
* Return the maximum last-modified time of the files in this
* tree, if available.
*/
virtual std::optional<time_t> getLastModified()
{
return std::nullopt;
}
StorePath fetchToStore(
ref<Store> store,
const CanonPath & path,

View file

@ -83,16 +83,7 @@ struct SourceAccessor
return number < x.number;
}
void setPathDisplay(std::string displayPrefix, std::string displaySuffix = "");
virtual std::string showPath(const CanonPath & path);
/* Return the maximum last-modified time of the files in this
tree, if available. */
virtual std::optional<time_t> getLastModified()
{
return std::nullopt;
}
};
/**