sd-json: drop sd_json_dispatch_pid() again, as we prefer json_dispatch_pidref() now

The calls are now unused, and we generally prefer if people send a PID
triplet rather than a single PID, hence stop supporting a high-level
dispacher for pid_t.
This commit is contained in:
Lennart Poettering
2024-10-11 14:03:05 +02:00
parent 6bca1a7c6c
commit 625f109604
4 changed files with 0 additions and 45 deletions

View File

@@ -150,7 +150,6 @@ static inline bool sched_priority_is_valid(int i) {
}
#define PID_AUTOMATIC ((pid_t) INT_MIN) /* special value indicating "acquire pid from connection peer" */
#define PID_INVALID ((pid_t) 0) /* default value for "invalid pid" */
static inline bool pid_is_valid(pid_t p) {
return p > 0;
@@ -160,10 +159,6 @@ static inline bool pid_is_automatic(pid_t p) {
return p == PID_AUTOMATIC;
}
static inline bool pid_is_valid_or_automatic(pid_t p) {
return pid_is_valid(p) || pid_is_automatic(p);
}
pid_t getpid_cached(void);
void reset_cached_pid(void);