From 7627f939597b8b39c802ce4a54722b21c7f0e9e9 Mon Sep 17 00:00:00 2001 From: Ray Strode Date: Thu, 31 May 2018 10:51:42 -0400 Subject: [PATCH] Revert "utils: add function for running program" This reverts commit 0faf4c82bf69709c9de8a6fa2bc7aa2eedf9510b. --- src/libply/ply-utils.c | 12 ------------ src/libply/ply-utils.h | 1 - 2 files changed, 13 deletions(-) diff --git a/src/libply/ply-utils.c b/src/libply/ply-utils.c index 9d2e6ff6..89e37e93 100644 --- a/src/libply/ply-utils.c +++ b/src/libply/ply-utils.c @@ -1015,16 +1015,4 @@ ply_get_device_scale (uint32_t width, return device_scale; } -bool -ply_run_program_in_background (const char *program) -{ - pid_t pid; - int result; - char argv[2] = { program, NULL }; - - result = posix_spawn (&pid, program, NULL, NULL, argv, NULL); - - return result == 0; -} - /* vim: set ts=4 sw=4 expandtab autoindent cindent cino={.5s,(0: */ diff --git a/src/libply/ply-utils.h b/src/libply/ply-utils.h index 19c5f90d..c46603ee 100644 --- a/src/libply/ply-utils.h +++ b/src/libply/ply-utils.h @@ -127,7 +127,6 @@ int ply_get_device_scale (uint32_t width, uint32_t height, uint32_t width_mm, uint32_t height_mm); -bool ply_run_program_in_background (const char *program); #endif -- 2.47.3