From bd1bb36f16600ca2d5147f34a13911a9e2790eb0 Mon Sep 17 00:00:00 2001 From: Leif Hedstrom Date: Wed, 6 Sep 2023 13:54:33 -0600 Subject: [PATCH] Removes unused Errata functions from WCCP --- src/wccp/WccpConfig.cc | 31 ------------------------------- 1 file changed, 31 deletions(-) diff --git a/src/wccp/WccpConfig.cc b/src/wccp/WccpConfig.cc index 1f10eb6ffef..3e7edf3aef3 100644 --- a/src/wccp/WccpConfig.cc +++ b/src/wccp/WccpConfig.cc @@ -137,12 +137,6 @@ Unable_To_Create_Service_Group(int line) return Errata(ec_for(EINVAL), ERRATA_FATAL, "Unable to create service group at line {} of configuration.", line); } -inline Errata & -Note_Services_Not_Found(Errata &errata) -{ - return errata.note(ERRATA_NOTE, "No services found in configuration."); -} - inline Errata Services_Not_Found() { @@ -163,29 +157,12 @@ Note_Service_Type_Defaulted(Errata &errata, wccp::ServiceGroup::Type type, int l return errata.note(ERRATA_NOTE, "'type' keyword not found in {} at line {} -- defaulting to {}", SVC_NAME, line, type); } -inline Errata -Service_Type_Defaulted(wccp::ServiceGroup::Type type, int line) -{ - Errata errata; - Note_Service_Type_Defaulted(errata.assign(ec_for(ENOENT)), type, line); - return errata; -} - inline Errata & Note_Service_Type_Invalid(Errata &errata, TextView text, int line) { return errata.note(ERRATA_WARN, R"(Service type "{}" at line {} is invalid. Must be "STANDARD" or "DYNAMIC".)"); } -inline Errata -Service_Type_Invalid(TextView text, int line) -{ - Errata errata; - Note_Service_Type_Invalid(errata, text, line); - errata.assign(ec_for(EINVAL)); - return errata; -} - inline Errata & Note_Prop_Not_Found(Errata &errata, TextView prop_name, TextView group_name, int line) { @@ -298,14 +275,6 @@ Note_Port_Type_Invalid(Errata &errata, TextView text, int line) SVC_PROP_PORT_TYPE); } -inline Errata -Port_Type_Invalid(TextView text, int line) -{ - Errata errata; - Note_Port_Type_Invalid(errata, text, line); - return errata; -} - } // namespace namespace wccp