diff options
| author | hiddenpath <[email protected]> | 2025-06-04 09:56:51 +0300 |
|---|---|---|
| committer | hiddenpath <[email protected]> | 2025-06-04 10:16:36 +0300 |
| commit | 01d772faec498be55a6c1808d2169c0eedb47491 (patch) | |
| tree | 6357a3e5b20ac18627119d86a74721e9c89da7b4 | |
| parent | b17040ae341a427a59fa6012d17c027b0384f3e9 (diff) | |
Remove unused ExtendGenericError method
commit_hash:70f08c3d0ef32d71b24bb9b41e770a7f9910ff60
| -rw-r--r-- | yt/cpp/mapreduce/http/helpers.cpp | 10 | ||||
| -rw-r--r-- | yt/cpp/mapreduce/http/helpers.h | 6 |
2 files changed, 0 insertions, 16 deletions
diff --git a/yt/cpp/mapreduce/http/helpers.cpp b/yt/cpp/mapreduce/http/helpers.cpp index c819e515b87..0e34610ef1a 100644 --- a/yt/cpp/mapreduce/http/helpers.cpp +++ b/yt/cpp/mapreduce/http/helpers.cpp @@ -100,16 +100,6 @@ void LogRequest(const THttpHeader& header, const TString& url, bool includeParam GetLoggedAttributes(header, url, includeParameters, Max<size_t>())); } -void ExtendGenericError(TErrorResponse& errorResponse, int code, TString message) -{ - const auto& error = errorResponse.GetError(); - - auto inner = error.InnerErrors(); - inner.emplace_back(code, std::move(message)); - - errorResponse.SetError(TYtError(error.GetCode(), error.GetMessage(), std::move(inner), error.GetAttributes())); -} - //////////////////////////////////////////////////////////////////////////////// } // namespace NYT diff --git a/yt/cpp/mapreduce/http/helpers.h b/yt/cpp/mapreduce/http/helpers.h index 24f9f59e353..474813674ef 100644 --- a/yt/cpp/mapreduce/http/helpers.h +++ b/yt/cpp/mapreduce/http/helpers.h @@ -24,12 +24,6 @@ TString GetLoggedAttributes(const THttpHeader& header, const TString& url, bool void LogRequest(const THttpHeader& header, const TString& url, bool includeParameters, const TString& requestId, const TString& hostName); -// Sometimes errors may not include any specific inner errors and appear to be generic. -// To differentiate these errors and reduce reliance on HTTP status codes, we need to extend inner error information. -// -// XXX(hiddenpath): Remove this method when server will respond with specific errors. -void ExtendGenericError(TErrorResponse& errorResponse, int code, TString message); - //////////////////////////////////////////////////////////////////////////////// } // namespace NYT |
