aed857
From 60545c63716ecc720728c221c61d575b267fbfc8 Mon Sep 17 00:00:00 2001
aed857
From: Michal Schmidt <mschmidt@redhat.com>
aed857
Date: Tue, 21 Jul 2015 15:51:16 +0200
aed857
Subject: [PATCH] core: remove generic job completion messages from unit
aed857
 vtables
aed857
aed857
These units' message format strings are identical to the generic
aed857
strings. Since we can always rely on the fallback, these are now
aed857
redundant.
aed857
aed857
(cherry picked from commit c382d69e3d39daedebcedb2da882beeb147a3cda)
aed857
aed857
Related: #1506256
aed857
---
aed857
 src/core/automount.c | 1 -
aed857
 src/core/busname.c   | 3 ---
aed857
 src/core/mount.c     | 1 -
aed857
 src/core/service.c   | 3 ---
aed857
 src/core/slice.c     | 1 -
aed857
 src/core/socket.c    | 1 -
aed857
 src/core/swap.c      | 1 -
aed857
 src/core/target.c    | 1 -
aed857
 8 files changed, 12 deletions(-)
aed857
aed857
diff --git a/src/core/automount.c b/src/core/automount.c
Pablo Greco 48fc63
index 679fe071e7..08519e49ca 100644
aed857
--- a/src/core/automount.c
aed857
+++ b/src/core/automount.c
aed857
@@ -1126,7 +1126,6 @@ const UnitVTable automount_vtable = {
aed857
                 .finished_start_job = {
aed857
                         [JOB_DONE]       = "Set up automount %s.",
aed857
                         [JOB_FAILED]     = "Failed to set up automount %s.",
aed857
-                        [JOB_DEPENDENCY] = "Dependency failed for %s.",
aed857
                 },
aed857
                 .finished_stop_job = {
aed857
                         [JOB_DONE]       = "Unset automount %s.",
aed857
diff --git a/src/core/busname.c b/src/core/busname.c
Pablo Greco 48fc63
index f626ba96d0..a5e659049d 100644
aed857
--- a/src/core/busname.c
aed857
+++ b/src/core/busname.c
aed857
@@ -1064,13 +1064,10 @@ const UnitVTable busname_vtable = {
aed857
                 .finished_start_job = {
aed857
                         [JOB_DONE]       = "Listening on %s.",
aed857
                         [JOB_FAILED]     = "Failed to listen on %s.",
aed857
-                        [JOB_DEPENDENCY] = "Dependency failed for %s.",
aed857
-                        [JOB_TIMEOUT]    = "Timed out starting %s.",
aed857
                 },
aed857
                 .finished_stop_job = {
aed857
                         [JOB_DONE]       = "Closed %s.",
aed857
                         [JOB_FAILED]     = "Failed stopping %s.",
aed857
-                        [JOB_TIMEOUT]    = "Timed out stopping %s.",
aed857
                 },
aed857
         },
aed857
 };
aed857
diff --git a/src/core/mount.c b/src/core/mount.c
Pablo Greco 48fc63
index f726d96591..0dc67dde69 100644
aed857
--- a/src/core/mount.c
aed857
+++ b/src/core/mount.c
aed857
@@ -1978,7 +1978,6 @@ const UnitVTable mount_vtable = {
aed857
                 .finished_start_job = {
aed857
                         [JOB_DONE]       = "Mounted %s.",
aed857
                         [JOB_FAILED]     = "Failed to mount %s.",
aed857
-                        [JOB_DEPENDENCY] = "Dependency failed for %s.",
aed857
                         [JOB_TIMEOUT]    = "Timed out mounting %s.",
aed857
                 },
aed857
                 .finished_stop_job = {
aed857
diff --git a/src/core/service.c b/src/core/service.c
Pablo Greco 48fc63
index 9622ce11ff..8303a1e7ee 100644
aed857
--- a/src/core/service.c
aed857
+++ b/src/core/service.c
aed857
@@ -3398,13 +3398,10 @@ const UnitVTable service_vtable = {
aed857
                 .finished_start_job = {
aed857
                         [JOB_DONE]       = "Started %s.",
aed857
                         [JOB_FAILED]     = "Failed to start %s.",
aed857
-                        [JOB_DEPENDENCY] = "Dependency failed for %s.",
aed857
-                        [JOB_TIMEOUT]    = "Timed out starting %s.",
aed857
                 },
aed857
                 .finished_stop_job = {
aed857
                         [JOB_DONE]       = "Stopped %s.",
aed857
                         [JOB_FAILED]     = "Stopped (with error) %s.",
aed857
-                        [JOB_TIMEOUT]    = "Timed out stopping %s.",
aed857
                 },
aed857
         },
aed857
 };
aed857
diff --git a/src/core/slice.c b/src/core/slice.c
Pablo Greco 48fc63
index 9154558b7b..1cce3e1217 100644
aed857
--- a/src/core/slice.c
aed857
+++ b/src/core/slice.c
aed857
@@ -299,7 +299,6 @@ const UnitVTable slice_vtable = {
aed857
         .status_message_formats = {
aed857
                 .finished_start_job = {
aed857
                         [JOB_DONE]       = "Created slice %s.",
aed857
-                        [JOB_DEPENDENCY] = "Dependency failed for %s.",
aed857
                 },
aed857
                 .finished_stop_job = {
aed857
                         [JOB_DONE]       = "Removed slice %s.",
aed857
diff --git a/src/core/socket.c b/src/core/socket.c
Pablo Greco 48fc63
index 771af0d241..efefe7ce5d 100644
aed857
--- a/src/core/socket.c
aed857
+++ b/src/core/socket.c
aed857
@@ -2736,7 +2736,6 @@ const UnitVTable socket_vtable = {
aed857
                 .finished_start_job = {
aed857
                         [JOB_DONE]       = "Listening on %s.",
aed857
                         [JOB_FAILED]     = "Failed to listen on %s.",
aed857
-                        [JOB_DEPENDENCY] = "Dependency failed for %s.",
aed857
                         [JOB_TIMEOUT]    = "Timed out starting %s.",
aed857
                 },
aed857
                 .finished_stop_job = {
aed857
diff --git a/src/core/swap.c b/src/core/swap.c
Pablo Greco 48fc63
index 984be2d9a9..e71de4e657 100644
aed857
--- a/src/core/swap.c
aed857
+++ b/src/core/swap.c
aed857
@@ -1525,7 +1525,6 @@ const UnitVTable swap_vtable = {
aed857
                 .finished_start_job = {
aed857
                         [JOB_DONE]       = "Activated swap %s.",
aed857
                         [JOB_FAILED]     = "Failed to activate swap %s.",
aed857
-                        [JOB_DEPENDENCY] = "Dependency failed for %s.",
aed857
                         [JOB_TIMEOUT]    = "Timed out activating swap %s.",
aed857
                 },
aed857
                 .finished_stop_job = {
aed857
diff --git a/src/core/target.c b/src/core/target.c
Pablo Greco 48fc63
index 2411a8e758..45248ad025 100644
aed857
--- a/src/core/target.c
aed857
+++ b/src/core/target.c
aed857
@@ -231,7 +231,6 @@ const UnitVTable target_vtable = {
aed857
         .status_message_formats = {
aed857
                 .finished_start_job = {
aed857
                         [JOB_DONE]       = "Reached target %s.",
aed857
-                        [JOB_DEPENDENCY] = "Dependency failed for %s.",
aed857
                 },
aed857
                 .finished_stop_job = {
aed857
                         [JOB_DONE]       = "Stopped target %s.",