Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 0 additions & 31 deletions src/wccp/WccpConfig.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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()
{
Expand All @@ -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)
{
Expand Down Expand Up @@ -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
Expand Down