From 51e607082fa1d46b24c8aeae7802039e5b2fc0d2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Sharma?= <737941+loic-sharma@users.noreply.github.com> Date: Wed, 13 Dec 2023 15:54:48 -0800 Subject: [PATCH] [Windows] Remove header guard from generated key map (#140082) The generated file is a `.cc` file that does not need header guards. This change updates the template that's used to generate that `.cc` file. No tests as this is a refactoring with no semantic changes. The generated `.cc` file in the engine will be updated by https://github.com/flutter/engine/pull/48993 --- dev/tools/gen_keycodes/data/windows_flutter_key_map_cc.tmpl | 5 ----- 1 file changed, 5 deletions(-) diff --git a/dev/tools/gen_keycodes/data/windows_flutter_key_map_cc.tmpl b/dev/tools/gen_keycodes/data/windows_flutter_key_map_cc.tmpl index 99603e555e..91cbcc7085 100644 --- a/dev/tools/gen_keycodes/data/windows_flutter_key_map_cc.tmpl +++ b/dev/tools/gen_keycodes/data/windows_flutter_key_map_cc.tmpl @@ -2,9 +2,6 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#ifndef FLUTTER_SHELL_PLATFORM_WINDOWS_FLUTTER_KEY_MAP_H_ -#define FLUTTER_SHELL_PLATFORM_WINDOWS_FLUTTER_KEY_MAP_H_ - #include "flutter/shell/platform/windows/keyboard_key_embedder_handler.h" #include @@ -40,5 +37,3 @@ std::map KeyboardKeyEmbedderHandler::scanCodeToLogicalMap_ = @@@MASK_CONSTANTS@@@ } // namespace flutter - -#endif