From 9e5c67a074b1f77e195a780847b715022aa4e2ca Mon Sep 17 00:00:00 2001 From: Webb Scales Date: Tue, 22 Nov 2022 16:18:20 -0500 Subject: [PATCH] Remove unused helper functions from agent/base Rather than verify that these functions work as expected in all environments, we just remove them, since they are not currently used. PBENCH-306 --- agent/base | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/agent/base b/agent/base index 9a04349f24..c1d2f1aaee 100755 --- a/agent/base +++ b/agent/base @@ -162,24 +162,6 @@ if [[ "${PBENCH_RPM_REQUIREMENT_MODE}" != "strict" && "${PBENCH_RPM_REQUIREMENT_ exit 1 fi -#+ -# Helper functions -#- - -function is_redhat() { - grep -q 'Red Hat' /etc/redhat-release - return $? -} - -function is_fedora() { - grep -q 'Fedora' /etc/redhat-release - return $? -} - -function get_redhat_version() { - cat /etc/redhat-release | awk '{ print $7 }' -} - # Constants tools_group_prefix="tools-v1-"