Skip to content

Commit

Permalink
Removed EnumTraits<WebCore::AuthenticatorTransport> as it was already…
Browse files Browse the repository at this point in the history
… ported to the new serialization format

https://bugs.webkit.org/show_bug.cgi?id=268158

Reviewed by Alex Christensen.

Ported in https://commits.webkit.org/256789@main

* Source/WebCore/Modules/webauthn/AuthenticatorTransport.h:

Canonical link: https://commits.webkit.org/278110@main
  • Loading branch information
mikhailramalho authored and achristensen07 committed Apr 29, 2024
1 parent 443d8b7 commit ad81d56
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 21 deletions.
20 changes: 0 additions & 20 deletions Source/WebCore/Modules/webauthn/AuthenticatorTransport.h
Expand Up @@ -41,24 +41,4 @@ enum class AuthenticatorTransport : uint8_t {

} // namespace WebCore

namespace WTF {

template<typename> struct EnumTraits;
template<typename E, E...> struct EnumValues;

template<> struct EnumTraits<WebCore::AuthenticatorTransport> {
using values = EnumValues<
WebCore::AuthenticatorTransport,
WebCore::AuthenticatorTransport::Usb,
WebCore::AuthenticatorTransport::Nfc,
WebCore::AuthenticatorTransport::Ble,
WebCore::AuthenticatorTransport::Internal,
WebCore::AuthenticatorTransport::Cable,
WebCore::AuthenticatorTransport::Hybrid,
WebCore::AuthenticatorTransport::SmartCard
>;
};

} // namespace WTF

#endif // ENABLE(WEB_AUTHN)
Expand Up @@ -29,6 +29,7 @@
#import "config.h"
#import "WebAuthenticatorCoordinatorProxy.h"

#import "ArgumentCoders.h"
#import "LocalService.h"
#import "Logging.h"
#import "PageClient.h"
Expand All @@ -48,7 +49,6 @@
#import <WebCore/WebAuthenticationUtils.h>
#import <wtf/BlockPtr.h>
#import <wtf/CompletionHandler.h>
#import <wtf/EnumTraits.h>
#import <wtf/StdLibExtras.h>
#import <wtf/cocoa/VectorCocoa.h>
#import <wtf/text/Base64.h>
Expand Down

0 comments on commit ad81d56

Please sign in to comment.