diff options
author | eldritch horrors <pennae@lix.systems> | 2024-04-27 21:24:36 +0200 |
---|---|---|
committer | eldritch horrors <pennae@lix.systems> | 2024-05-09 23:18:05 +0200 |
commit | 2f4a1dd6e03f3005e1f11dc98dda2d2d214b1f6f (patch) | |
tree | a9c0d70d2c4fa611d4c405ec81ac2b8f9c9bf3cf /src/libstore/store-api.hh | |
parent | c77bd88259dac6e6b7bcb29425905467aa2ef66f (diff) |
libstore: de-callback-ify Store::queryPathInfoUncached
Change-Id: I23a156aaff5328f67ca16ccd85c0ea1711b21e35
Diffstat (limited to 'src/libstore/store-api.hh')
-rw-r--r-- | src/libstore/store-api.hh | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/src/libstore/store-api.hh b/src/libstore/store-api.hh index cb9f8e4a6..8cdfff576 100644 --- a/src/libstore/store-api.hh +++ b/src/libstore/store-api.hh @@ -367,12 +367,6 @@ public: ref<const ValidPathInfo> queryPathInfo(const StorePath & path); /** - * Asynchronous version of queryPathInfo(). - */ - void queryPathInfo(const StorePath & path, - Callback<ref<const ValidPathInfo>> callback) noexcept; - - /** * Query the information about a realisation. */ std::shared_ptr<const Realisation> queryRealisation(const DrvOutput &); @@ -407,8 +401,7 @@ public: protected: - virtual void queryPathInfoUncached(const StorePath & path, - Callback<std::shared_ptr<const ValidPathInfo>> callback) noexcept = 0; + virtual std::shared_ptr<const ValidPathInfo> queryPathInfoUncached(const StorePath & path) = 0; virtual void queryRealisationUncached(const DrvOutput &, Callback<std::shared_ptr<const Realisation>> callback) noexcept = 0; |