]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
msg/async/ProtocolV2: remove unused get_auth_allowed_methods
authorSage Weil <sage@redhat.com>
Mon, 4 Feb 2019 09:32:02 +0000 (03:32 -0600)
committerSage Weil <sage@redhat.com>
Thu, 7 Feb 2019 18:10:34 +0000 (12:10 -0600)
Signed-off-by: Sage Weil <sage@redhat.com>
src/msg/async/ProtocolV2.cc
src/msg/async/ProtocolV2.h

index 27854a6207be24f5d47ddb2b11f6479b075111cd..f36e85511e1b7d0de4d38f89ddd95d2c40dd91dd 100644 (file)
@@ -43,27 +43,6 @@ struct SHA256SignatureError : public std::exception {
 
 struct DecryptionError : public std::exception {};
 
-void ProtocolV2::get_auth_allowed_methods(
-  int peer_type, std::vector<uint32_t> &allowed_methods)
-{
-  std::string method;
-  if (!cct->_conf->auth_supported.empty()) {
-    method = cct->_conf->auth_supported;
-  } else if (peer_type == CEPH_ENTITY_TYPE_OSD ||
-            peer_type == CEPH_ENTITY_TYPE_MDS ||
-            peer_type == CEPH_ENTITY_TYPE_MON ||
-            peer_type == CEPH_ENTITY_TYPE_MGR) {
-    method = cct->_conf->auth_cluster_required;
-  } else {
-    method = cct->_conf->auth_client_required;
-  }
-  AuthMethodList auth_list(cct, method);
-  for (auto pt : auth_list.get_supported_set()) {
-    allowed_methods.push_back(pt);
-  }
-}
-
-
 void ProtocolV2::run_continuation(CtPtr continuation) {
   try {
     CONTINUATION_RUN(continuation)
index 4599b09ce401d7fdddc96d485f3e2e1b811f6fc9..8185c576363467ef2c527518db92fb48fd1492eb 100644 (file)
@@ -106,9 +106,6 @@ private:
 
   bool keepalive;
 
-  void get_auth_allowed_methods(
-    int peer_type, std::vector<uint32_t> &allowed_methods);
-
   ostream &_conn_prefix(std::ostream *_dout);
   void run_continuation(Ct<ProtocolV2> *continuation);
   void calc_signature(const char *in, uint32_t length, char *out);