aboutsummaryrefslogtreecommitdiff
path: root/src/libstore/build/goal.hh
diff options
context:
space:
mode:
authoreldritch horrors <pennae@lix.systems>2024-09-25 23:57:46 +0200
committereldritch horrors <pennae@lix.systems>2024-09-29 14:29:14 +0000
commit7f4f86795cc4215d0b8906d2203976768c5f7b21 (patch)
tree0bdbe948d7f35bc7e011e323ca241f8a62e91c6e /src/libstore/build/goal.hh
parenta5240b23abba2724073f79b79648bf4afb38f70a (diff)
libstore: remove Goal::key
this was a debugging aid from day one that should not have any impact on build semantics, and if it *does* have an impact on build semantics then build semantics are seriously broken. keeping the order imposed by these keys will be impossible once we let a real event loop schedule our jobs. Change-Id: I5c313324e1f213ab6453d82f41ae5e59de809a5b
Diffstat (limited to 'src/libstore/build/goal.hh')
-rw-r--r--src/libstore/build/goal.hh8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/libstore/build/goal.hh b/src/libstore/build/goal.hh
index f808be160..4436e44b1 100644
--- a/src/libstore/build/goal.hh
+++ b/src/libstore/build/goal.hh
@@ -22,14 +22,10 @@ class Worker;
*/
typedef std::shared_ptr<Goal> GoalPtr;
-struct CompareGoalPtrs {
- bool operator() (const GoalPtr & a, const GoalPtr & b) const;
-};
-
/**
* Set of goals.
*/
-typedef std::set<GoalPtr, CompareGoalPtrs> Goals;
+typedef std::set<GoalPtr> Goals;
/**
* Used as a hint to the worker on how to schedule a particular goal. For example,
@@ -167,8 +163,6 @@ public:
return name;
}
- virtual std::string key() = 0;
-
virtual void cleanup() { }
/**