Skip to content

Commit 9167ab7

Browse files
committed
Fixing compiler giving warnings about unreachable code due to throwing exception for disabling oauth1.
1 parent b4fb44d commit 9167ab7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Release/src/http/oauth/oauth1.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ namespace experimental
6262
std::vector<unsigned char> oauth1_config::_hmac_sha1(const utility::string_t&, const utility::string_t&)
6363
{
6464
// CodePlex #230
65-
throw std::runtime_error("oauth1 is not implemented yet.");
65+
return std::vector<unsigned char>();
6666
}
6767

6868
#elif defined(_MS_WINDOWS) && defined(__cplusplus_winrt) // Windows RT
@@ -74,7 +74,7 @@ using namespace Windows::Storage::Streams;
7474
std::vector<unsigned char> oauth1_config::_hmac_sha1(const utility::string_t&, const utility::string_t&)
7575
{
7676
// CodePlex #230
77-
throw std::runtime_error("oauth1 is not implemented yet.");
77+
return std::vector<unsigned char>();
7878
}
7979

8080
#else // Linux, Mac OS X
@@ -84,7 +84,7 @@ std::vector<unsigned char> oauth1_config::_hmac_sha1(const utility::string_t&, c
8484
std::vector<unsigned char> oauth1_config::_hmac_sha1(const utility::string_t&, const utility::string_t&)
8585
{
8686
// CodePlex #230
87-
throw std::runtime_error("oauth1 is not implemented yet.");
87+
return std::vector<unsigned char>();
8888
}
8989

9090
#endif

0 commit comments

Comments
 (0)