Remove redundant void from error messages
It's not neeeded.
Tested:
Code compiles. No functional changes.
Signed-off-by: Ed Tanous <ed@tanous.net>
Change-Id: I21588b8ca2bab4ddb65d9c6d910ba26db83c323b
diff --git a/redfish-core/include/error_messages.hpp b/redfish-core/include/error_messages.hpp
index 7255b8e..0b9fad1 100644
--- a/redfish-core/include/error_messages.hpp
+++ b/redfish-core/include/error_messages.hpp
@@ -34,7 +34,7 @@
*
*
* @returns Message ResourceInUse formatted to JSON */
-nlohmann::json resourceInUse(void);
+nlohmann::json resourceInUse();
void resourceInUse(crow::Response& res);
@@ -45,7 +45,7 @@
*
*
* @returns Message MalformedJSON formatted to JSON */
-nlohmann::json malformedJSON(void);
+nlohmann::json malformedJSON();
void malformedJSON(crow::Response& res);
@@ -86,7 +86,7 @@
*
*
* @returns Message InternalError formatted to JSON */
-nlohmann::json internalError(void);
+nlohmann::json internalError();
void internalError(crow::Response& res);
@@ -97,7 +97,7 @@
*
*
* @returns Message UnrecognizedRequestBody formatted to JSON */
-nlohmann::json unrecognizedRequestBody(void);
+nlohmann::json unrecognizedRequestBody();
void unrecognizedRequestBody(crow::Response& res);
@@ -138,7 +138,7 @@
*
*
* @returns Message ResourceCannotBeDeleted formatted to JSON */
-nlohmann::json resourceCannotBeDeleted(void);
+nlohmann::json resourceCannotBeDeleted();
void resourceCannotBeDeleted(crow::Response& res);
@@ -190,7 +190,7 @@
*
*
* @returns Message AccountForSessionNoLongerExists formatted to JSON */
-nlohmann::json accountForSessionNoLongerExists(void);
+nlohmann::json accountForSessionNoLongerExists();
void accountForSessionNoLongerExists(crow::Response& res);
@@ -256,7 +256,7 @@
*
*
* @returns Message ServiceInUnknownState formatted to JSON */
-nlohmann::json serviceInUnknownState(void);
+nlohmann::json serviceInUnknownState();
void serviceInUnknownState(crow::Response& res);
@@ -267,7 +267,7 @@
*
*
* @returns Message EventSubscriptionLimitExceeded formatted to JSON */
-nlohmann::json eventSubscriptionLimitExceeded(void);
+nlohmann::json eventSubscriptionLimitExceeded();
void eventSubscriptionLimitExceeded(crow::Response& res);
@@ -305,7 +305,7 @@
*
*
* @returns Message SessionTerminated formatted to JSON */
-nlohmann::json sessionTerminated(void);
+nlohmann::json sessionTerminated();
void sessionTerminated(crow::Response& res);
@@ -315,7 +315,7 @@
*
*
* @returns Message SubscriptionTerminated formatted to JSON */
-nlohmann::json subscriptionTerminated(void);
+nlohmann::json subscriptionTerminated();
void subscriptionTerminated(crow::Response& res);
@@ -421,7 +421,7 @@
*
*
* @returns Message MaximumErrorsExceeded formatted to JSON */
-nlohmann::json maximumErrorsExceeded(void);
+nlohmann::json maximumErrorsExceeded();
void maximumErrorsExceeded(crow::Response& res);
@@ -432,7 +432,7 @@
*
*
* @returns Message PreconditionFailed formatted to JSON */
-nlohmann::json preconditionFailed(void);
+nlohmann::json preconditionFailed();
void preconditionFailed(crow::Response& res);
@@ -443,7 +443,7 @@
*
*
* @returns Message PreconditionRequired formatted to JSON */
-nlohmann::json preconditionRequired(void);
+nlohmann::json preconditionRequired();
void preconditionRequired(crow::Response& res);
@@ -454,7 +454,7 @@
*
*
* @returns Message OperationFailed formatted to JSON */
-nlohmann::json operationFailed(void);
+nlohmann::json operationFailed();
void operationFailed(crow::Response& res);
@@ -465,7 +465,7 @@
*
*
* @returns Message OperationTimeout formatted to JSON */
-nlohmann::json operationTimeout(void);
+nlohmann::json operationTimeout();
void operationTimeout(crow::Response& res);
@@ -545,7 +545,7 @@
*
*
* @returns Message ServiceShuttingDown formatted to JSON */
-nlohmann::json serviceShuttingDown(void);
+nlohmann::json serviceShuttingDown();
void serviceShuttingDown(crow::Response& res);
@@ -600,7 +600,7 @@
*
*
* @returns Message AccountRemoved formatted to JSON */
-nlohmann::json accountRemoved(void);
+nlohmann::json accountRemoved();
void accountRemoved(crow::Response& res);
@@ -622,7 +622,7 @@
*
*
* @returns Message QueryNotSupported formatted to JSON */
-nlohmann::json queryNotSupported(void);
+nlohmann::json queryNotSupported();
void queryNotSupported(crow::Response& res);
@@ -633,7 +633,7 @@
*
*
* @returns Message CreateLimitReachedForResource formatted to JSON */
-nlohmann::json createLimitReachedForResource(void);
+nlohmann::json createLimitReachedForResource();
void createLimitReachedForResource(crow::Response& res);
@@ -644,7 +644,7 @@
*
*
* @returns Message GeneralError formatted to JSON */
-nlohmann::json generalError(void);
+nlohmann::json generalError();
void generalError(crow::Response& res);
@@ -654,7 +654,7 @@
*
*
* @returns Message Success formatted to JSON */
-nlohmann::json success(void);
+nlohmann::json success();
void success(crow::Response& res);
@@ -664,7 +664,7 @@
*
*
* @returns Message Created formatted to JSON */
-nlohmann::json created(void);
+nlohmann::json created();
void created(crow::Response& res);
@@ -675,7 +675,7 @@
*
*
* @returns Message NoOperation formatted to JSON */
-nlohmann::json noOperation(void);
+nlohmann::json noOperation();
void noOperation(crow::Response& res);
@@ -698,7 +698,7 @@
*
*
* @returns Message NoValidSession formatted to JSON */
-nlohmann::json noValidSession(void);
+nlohmann::json noValidSession();
void noValidSession(crow::Response& res);
@@ -720,7 +720,7 @@
*
*
* @returns Message ResourceInStandby formatted to JSON */
-nlohmann::json resourceInStandby(void);
+nlohmann::json resourceInStandby();
void resourceInStandby(crow::Response& res);
@@ -749,7 +749,7 @@
*
*
* @returns Message SessionLimitExceeded formatted to JSON */
-nlohmann::json sessionLimitExceeded(void);
+nlohmann::json sessionLimitExceeded();
void sessionLimitExceeded(crow::Response& res);
@@ -782,7 +782,7 @@
*
*
* @returns Message EmptyJSON formatted to JSON */
-nlohmann::json emptyJSON(void);
+nlohmann::json emptyJSON();
void emptyJSON(crow::Response& res);
@@ -792,7 +792,7 @@
*
*
* @returns Message QueryNotSupportedOnResource formatted to JSON */
-nlohmann::json queryNotSupportedOnResource(void);
+nlohmann::json queryNotSupportedOnResource();
void queryNotSupportedOnResource(crow::Response& res);
@@ -802,7 +802,7 @@
*
*
* @returns Message QueryNotSupportedOnOperation formatted to JSON */
-nlohmann::json queryNotSupportedOnOperation(void);
+nlohmann::json queryNotSupportedOnOperation();
void queryNotSupportedOnOperation(crow::Response& res);
@@ -813,7 +813,7 @@
*
*
* @returns Message QueryCombinationInvalid formatted to JSON */
-nlohmann::json queryCombinationInvalid(void);
+nlohmann::json queryCombinationInvalid();
void queryCombinationInvalid(crow::Response& res);
@@ -825,7 +825,7 @@
*
*
* @returns Message InsufficientPrivilege formatted to JSON */
-nlohmann::json insufficientPrivilege(void);
+nlohmann::json insufficientPrivilege();
void insufficientPrivilege(crow::Response& res);
@@ -850,7 +850,7 @@
*
*
* @returns Message AccountNotModified formatted to JSON */
-nlohmann::json accountNotModified(void);
+nlohmann::json accountNotModified();
void accountNotModified(crow::Response& res);
@@ -901,7 +901,7 @@
*
*
* @returns Message AccountModified formatted to JSON */
-nlohmann::json accountModified(void);
+nlohmann::json accountModified();
void accountModified(crow::Response& res);
diff --git a/redfish-core/include/resource_messages.hpp b/redfish-core/include/resource_messages.hpp
index 17157fe..95ace94 100644
--- a/redfish-core/include/resource_messages.hpp
+++ b/redfish-core/include/resource_messages.hpp
@@ -5,7 +5,7 @@
namespace messages
{
-inline nlohmann::json resourceChanged(void)
+inline nlohmann::json resourceChanged()
{
return nlohmann::json{
{"EventType", "ResourceChanged"},
@@ -16,7 +16,7 @@
{"MessageSeverity", "OK"}};
}
-inline nlohmann::json resourceCreated(void)
+inline nlohmann::json resourceCreated()
{
return nlohmann::json{
{"EventType", "ResourceAdded"},
@@ -27,7 +27,7 @@
{"MessageSeverity", "OK"}};
}
-inline nlohmann::json resourceRemoved(void)
+inline nlohmann::json resourceRemoved()
{
return nlohmann::json{
{"EventType", "ResourceRemoved"},