This is an automated email from the ASF dual-hosted git repository. rrm pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/trafficserver.git
commit 02712425c8d178253c5a8901699aeaa0e6f728c5 Author: Randall Meyer <r...@apple.com> AuthorDate: Mon Jul 30 13:44:53 2018 -0700 Converts more source files to #pragma once --- iocore/utils/I_Machine.h | 5 +---- lib/records/test_RecordsConfig.h | 4 +--- lib/ts/ink_config.h.in | 5 +---- plugins/esi/lib/SpecialIncludeHandler.h | 6 +----- proxy/TimeTrace.h | 7 ------- 5 files changed, 4 insertions(+), 23 deletions(-) diff --git a/iocore/utils/I_Machine.h b/iocore/utils/I_Machine.h index c673061..fa16af0 100644 --- a/iocore/utils/I_Machine.h +++ b/iocore/utils/I_Machine.h @@ -28,8 +28,7 @@ */ -#ifndef _I_Machine_h -#define _I_Machine_h +#pragma once #include "ts/ink_inet.h" #include "ts/ink_uuid.h" @@ -93,5 +92,3 @@ protected: InkHashTable *machine_id_strings; InkHashTable *machine_id_ipaddrs; }; - -#endif diff --git a/lib/records/test_RecordsConfig.h b/lib/records/test_RecordsConfig.h index df1884b..e4b8c48 100644 --- a/lib/records/test_RecordsConfig.h +++ b/lib/records/test_RecordsConfig.h @@ -21,8 +21,6 @@ limitations under the License. */ -#ifndef _TEST_RECORDS_CONFIG_H_ +#pragma once void RecordsConfigRegister(); - -#endif diff --git a/lib/ts/ink_config.h.in b/lib/ts/ink_config.h.in index f4b491b..c45487f 100644 --- a/lib/ts/ink_config.h.in +++ b/lib/ts/ink_config.h.in @@ -22,8 +22,7 @@ limitations under the License. */ -#ifndef _ink_config_h -#define _ink_config_h +#pragma once // Note: All "defines" should be prefixed with TS_ when appropriate, please // don't use ATS_ any more. @@ -127,5 +126,3 @@ /* clang-format on */ static const int DEFAULT_STACKSIZE = @default_stack_size@; - -#endif /* _ink_config_h */ diff --git a/plugins/esi/lib/SpecialIncludeHandler.h b/plugins/esi/lib/SpecialIncludeHandler.h index 29a9109..5caab7a 100644 --- a/plugins/esi/lib/SpecialIncludeHandler.h +++ b/plugins/esi/lib/SpecialIncludeHandler.h @@ -21,9 +21,7 @@ limitations under the License. */ -#ifndef _ESI_SPECIAL_INCLUDE_HANDLER - -#define _ESI_SPECIAL_INCLUDE_HANDLER +#pragma once #include "HttpDataFetcher.h" #include "Variables.h" @@ -69,5 +67,3 @@ protected: HttpDataFetcher &_http_fetcher; }; }; // namespace EsiLib - -#endif diff --git a/proxy/TimeTrace.h b/proxy/TimeTrace.h index fb3f42f..66becc2 100644 --- a/proxy/TimeTrace.h +++ b/proxy/TimeTrace.h @@ -21,13 +21,6 @@ limitations under the License. */ -/**************************************************************************** - - TimeTrace.h - - - ****************************************************************************/ - #pragma once // #define ENABLE_TIME_TRACE