chiark / gitweb /
manager: simplify transaction_abort()
[elogind.git] / src / core / manager.c
index aa918f1bd0d0d1cde30c4a69da2358af01564aab..546b3233b0db522bcb69199026525cb06e9112c6 100644 (file)
@@ -710,12 +710,7 @@ static void transaction_abort(Manager *m) {
         assert(m);
 
         while ((j = hashmap_first(m->transaction_jobs)))
-                if (j->installed)
-                        transaction_delete_job(m, j, true);
-                else {
-                        transaction_unlink_job(m, j, true);
-                        job_free(j);
-                }
+                transaction_delete_job(m, j, true);
 
         assert(hashmap_isempty(m->transaction_jobs));