dead code removal
authorLuke Howard <lukeh@padl.com>
Sat, 18 Sep 2010 16:01:39 +0000 (18:01 +0200)
committerLuke Howard <lukeh@padl.com>
Sat, 18 Sep 2010 16:01:39 +0000 (18:01 +0200)
mech_eap/util_saml.cpp

index 29bbcb0..fb3e935 100644 (file)
@@ -48,28 +48,6 @@ using namespace opensaml;
 using namespace xercesc;
 using namespace std;
 
-class auto_ptr_gss_buffer {
-    MAKE_NONCOPYABLE(auto_ptr_gss_buffer);
-    public:
-        auto_ptr_gss_buffer() : m_buf(NULL) {
-        }
-        auto_ptr_gss_buffer(const gss_buffer_t src) {
-            m_buf = new XMLCh[src->length + 1];
-            XMLString::transcode((const char *)src->value, m_buf, src->length);
-        }
-        ~auto_ptr_gss_buffer() {
-            xercesc::XMLString::release(&m_buf);
-        }
-        const XMLCh* get() const {
-            return m_buf;
-        }
-        XMLCh* release() {
-            XMLCh *temp = m_buf; m_buf = NULL; return temp;
-        }
-    private:
-        XMLCh *m_buf;
-};
-
 /*
  * gss_eap_saml_assertion_provider is for retrieving the underlying
  * assertion.