mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-09-20 08:40:50 +00:00
Remove useless code
This commit is contained in:
parent
334535a4c4
commit
9ca5c960b7
@ -18,7 +18,7 @@ namespace ErrorCodes
|
||||
extern const int KERBEROS_ERROR;
|
||||
}
|
||||
|
||||
GSSAcceptorContext::GSSAcceptorContext(const GSSAcceptorContext::Params& params_)
|
||||
GSSAcceptorContext::GSSAcceptorContext(const GSSAcceptorContext::Params & params_)
|
||||
: params(params_)
|
||||
{
|
||||
}
|
||||
@ -50,7 +50,6 @@ std::recursive_mutex gss_global_mutex;
|
||||
struct PrincipalName
|
||||
{
|
||||
explicit PrincipalName(String principal);
|
||||
// operator String() const;
|
||||
|
||||
String name;
|
||||
std::vector<String> instances;
|
||||
@ -75,24 +74,6 @@ PrincipalName::PrincipalName(String principal)
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
PrincipalName::operator String() const
|
||||
{
|
||||
String principal = name;
|
||||
|
||||
for (const auto & instance : instances)
|
||||
{
|
||||
principal += '/';
|
||||
principal += instance;
|
||||
}
|
||||
|
||||
principal += '@';
|
||||
principal += realm;
|
||||
|
||||
return principal;
|
||||
}
|
||||
*/
|
||||
|
||||
String bufferToString(const gss_buffer_desc & buf)
|
||||
{
|
||||
String str;
|
||||
|
@ -30,7 +30,7 @@ public:
|
||||
String realm;
|
||||
};
|
||||
|
||||
explicit GSSAcceptorContext(const Params& params_);
|
||||
explicit GSSAcceptorContext(const Params & params_);
|
||||
virtual ~GSSAcceptorContext() override;
|
||||
|
||||
GSSAcceptorContext(const GSSAcceptorContext &) = delete;
|
||||
|
Loading…
Reference in New Issue
Block a user