From 04af17121c2d73a0bdd3a325fbfe4b42580fa17e Mon Sep 17 00:00:00 2001 From: Simon Rozman Date: Tue, 25 Oct 2016 13:34:21 +0200 Subject: [PATCH] Redundant eap::credentials_eaphost::get_identity() removed --- lib/EapHost/include/Credentials.h | 5 ----- lib/EapHost/src/Credentials.cpp | 13 ------------- 2 files changed, 18 deletions(-) diff --git a/lib/EapHost/include/Credentials.h b/lib/EapHost/include/Credentials.h index 41372c4..8e13b25 100644 --- a/lib/EapHost/include/Credentials.h +++ b/lib/EapHost/include/Credentials.h @@ -177,11 +177,6 @@ namespace eap /// @} - /// - /// Returns credential identity. - /// - virtual std::wstring get_identity() const; - /// /// Combine credentials in the following order: /// diff --git a/lib/EapHost/src/Credentials.cpp b/lib/EapHost/src/Credentials.cpp index 68ab566..6033666 100644 --- a/lib/EapHost/src/Credentials.cpp +++ b/lib/EapHost/src/Credentials.cpp @@ -231,19 +231,6 @@ LPCTSTR eap::credentials_eaphost::target_suffix() const } -std::wstring eap::credentials_eaphost::get_identity() const -{ - if (!m_identity.empty()) { - return m_identity; - } else if (!m_cred_blob.empty()) { - // TODO: Use EapHostPeerGetIdentity() to obtain user identity. - assert(0); - } - - return L""; -} - - eap::credentials::source_t eap::credentials_eaphost::combine( _In_ DWORD dwFlags, _In_ HANDLE hTokenImpersonateUser,