diff --git a/src/api/delete.cpp b/src/api/delete.cpp index 02d1d06..d402973 100644 --- a/src/api/delete.cpp +++ b/src/api/delete.cpp @@ -82,12 +82,7 @@ const uint_fast16_t API::del(const Mastodon::API::v1 &call, parametermap newparameters = parameters; // Emulate old behaviour - switch (call) - { - default: - newparameters["id"] = { argument }; - break; - } + newparameters["id"] = { argument }; return del(call, parameters); } diff --git a/src/api/post.cpp b/src/api/post.cpp index c344b1f..d44b9bd 100644 --- a/src/api/post.cpp +++ b/src/api/post.cpp @@ -146,12 +146,7 @@ const uint_fast16_t API::post(const Mastodon::API::v1 &call, parametermap newparameters = parameters; // Emulate old behaviour - switch (call) - { - default: - newparameters["id"] = { argument }; - break; - } + newparameters["id"] = { argument }; return post(call, newparameters, answer); } diff --git a/src/api/put.cpp b/src/api/put.cpp index 4110b7d..6f3321d 100644 --- a/src/api/put.cpp +++ b/src/api/put.cpp @@ -67,12 +67,7 @@ const uint_fast16_t API::put(const Mastodon::API::v1 &call, parametermap newparameters = parameters; // Emulate old behaviour - switch (call) - { - default: - newparameters["id"] = { argument }; - break; - } + newparameters["id"] = { argument }; return put(call, newparameters, answer); }