Clean up: Remove pre-macOS Sierra workaround for missing kVK_RightCommand
https://bugs.webkit.org/show_bug.cgi?id=202597

Reviewed by Anders Carlsson.

kVK_RightCommand has been defined in HIToolbox/Events.h since macOS Sierra. We no longer
need to maintain code to manually define it.

* platform/mac/PlatformEventFactoryMac.mm:
(WebCore::keyForKeyEvent):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@250915 268f45cc-cd09-0410-ab3c-d52691b4dbfc
diff --git a/Source/WebCore/ChangeLog b/Source/WebCore/ChangeLog
index 588474a..ea801fe 100644
--- a/Source/WebCore/ChangeLog
+++ b/Source/WebCore/ChangeLog
@@ -1,3 +1,16 @@
+2019-10-09  Daniel Bates  <dabates@apple.com>
+
+        Clean up: Remove pre-macOS Sierra workaround for missing kVK_RightCommand
+        https://bugs.webkit.org/show_bug.cgi?id=202597
+
+        Reviewed by Anders Carlsson.
+
+        kVK_RightCommand has been defined in HIToolbox/Events.h since macOS Sierra. We no longer
+        need to maintain code to manually define it.
+
+        * platform/mac/PlatformEventFactoryMac.mm:
+        (WebCore::keyForKeyEvent):
+
 2019-10-09  Antti Koivisto  <antti@apple.com>
 
         [CSS Shadow Parts] Minor exportparts attribute parsing cleanups
diff --git a/Source/WebCore/platform/mac/PlatformEventFactoryMac.mm b/Source/WebCore/platform/mac/PlatformEventFactoryMac.mm
index 2328baf..e286dd7 100644
--- a/Source/WebCore/platform/mac/PlatformEventFactoryMac.mm
+++ b/Source/WebCore/platform/mac/PlatformEventFactoryMac.mm
@@ -222,10 +222,6 @@
 
 String keyForKeyEvent(NSEvent *event)
 {
-    // This constant was missing before OS X Sierra.
-#ifndef kVK_RightCommand
-#define kVK_RightCommand 0x36
-#endif
     switch ([event keyCode]) {
     case kVK_RightCommand:
     case kVK_Command: