diff options
author | Gerald Combs <gerald@wireshark.org> | 2021-04-19 13:58:59 -0700 |
---|---|---|
committer | Wireshark GitLab Utility <gerald+gitlab-utility@wireshark.org> | 2021-04-20 07:43:39 +0000 |
commit | 9222bd77cdf808956e85bf53c6d07db1e075582f (patch) | |
tree | d28af95d3bc19aa393b452e8e7afd91cf8c3b5e3 /ui/cli | |
parent | 9bb2af76d9a7174eba821b7ae1f24d3fd24fba89 (diff) |
Remove unneeded modelines in ui.
Remove the editor modeline blocks from the source files in ui that use 4
space indentation by running
perl -i -p0e 's{ \n+ /[ *\n]+ editor \s+ modelines .* shiftwidth= .* \*/ \s+ } {\n}gsix' $( ag -l shiftwidth=4 $( ag -g '\.(c|cpp|h|m|mm)') )
This gives us one source of indentation truth for these files, and it
*shouldn't* affect anyone since
- These files match the default in our top-level .editorconfig.
- The one notable editor that's likely to be used on these files and
*doesn't* support EditorConfig (Qt Creator) defaults to 4 space
indentation.
Diffstat (limited to 'ui/cli')
-rw-r--r-- | ui/cli/tap-expert.c | 13 | ||||
-rw-r--r-- | ui/cli/tap-exportobject.c | 13 | ||||
-rw-r--r-- | ui/cli/tap-funnel.c | 13 | ||||
-rw-r--r-- | ui/cli/tap-gsm_astat.c | 13 | ||||
-rw-r--r-- | ui/cli/tap-icmpstat.c | 13 | ||||
-rw-r--r-- | ui/cli/tap-icmpv6stat.c | 13 | ||||
-rw-r--r-- | ui/cli/tap-iostat.c | 13 | ||||
-rw-r--r-- | ui/cli/tap-macltestat.c | 13 | ||||
-rw-r--r-- | ui/cli/tap-rlcltestat.c | 13 | ||||
-rw-r--r-- | ui/cli/tap-rtp.c | 13 |
10 files changed, 0 insertions, 130 deletions
diff --git a/ui/cli/tap-expert.c b/ui/cli/tap-expert.c index 277a37cefb..03c4aa744c 100644 --- a/ui/cli/tap-expert.c +++ b/ui/cli/tap-expert.c @@ -284,16 +284,3 @@ register_tap_listener_expert_info(void) { register_stat_tap_ui(&expert_stat_ui, NULL); } - -/* - * Editor modelines - https://www.wireshark.org/tools/modelines.html - * - * Local variables: - * c-basic-offset: 4 - * tab-width: 8 - * indent-tabs-mode: nil - * End: - * - * vi: set shiftwidth=4 tabstop=8 expandtab: - * :indentSize=4:tabSize=8:noTabs=true: - */ diff --git a/ui/cli/tap-exportobject.c b/ui/cli/tap-exportobject.c index 73d5b2c794..402e602f79 100644 --- a/ui/cli/tap-exportobject.c +++ b/ui/cli/tap-exportobject.c @@ -188,16 +188,3 @@ void start_exportobjects(void) if (eo_opts != NULL) g_hash_table_foreach(eo_opts, exportobject_handler, NULL); } - -/* - * Editor modelines - https://www.wireshark.org/tools/modelines.html - * - * Local variables: - * c-basic-offset: 4 - * tab-width: 8 - * indent-tabs-mode: nil - * End: - * - * vi: set shiftwidth=4 tabstop=8 expandtab: - * :indentSize=4:tabSize=8:noTabs=true: - */ diff --git a/ui/cli/tap-funnel.c b/ui/cli/tap-funnel.c index d628a64543..3dd61f5907 100644 --- a/ui/cli/tap-funnel.c +++ b/ui/cli/tap-funnel.c @@ -192,16 +192,3 @@ register_tap_listener_funnel(void) funnel_register_all_menus(register_menu_cb); #endif } - -/* - * Editor modelines - https://www.wireshark.org/tools/modelines.html - * - * Local variables: - * c-basic-offset: 4 - * tab-width: 8 - * indent-tabs-mode: nil - * End: - * - * vi: set shiftwidth=4 tabstop=8 expandtab: - * :indentSize=4:tabSize=8:noTabs=true: - */ diff --git a/ui/cli/tap-gsm_astat.c b/ui/cli/tap-gsm_astat.c index 34be1c7af4..2bff4199b7 100644 --- a/ui/cli/tap-gsm_astat.c +++ b/ui/cli/tap-gsm_astat.c @@ -343,16 +343,3 @@ register_tap_listener_gsm_astat(void) { register_stat_tap_ui(&gsm_a_stat_ui, NULL); } - -/* - * Editor modelines - https://www.wireshark.org/tools/modelines.html - * - * Local variables: - * c-basic-offset: 4 - * tab-width: 8 - * indent-tabs-mode: nil - * End: - * - * vi: set shiftwidth=4 tabstop=8 expandtab: - * :indentSize=4:tabSize=8:noTabs=true: - */ diff --git a/ui/cli/tap-icmpstat.c b/ui/cli/tap-icmpstat.c index b15b6e09e1..4020c4d37b 100644 --- a/ui/cli/tap-icmpstat.c +++ b/ui/cli/tap-icmpstat.c @@ -313,16 +313,3 @@ register_tap_listener_icmpstat(void) { register_stat_tap_ui(&icmpstat_ui, NULL); } - -/* - * Editor modelines - https://www.wireshark.org/tools/modelines.html - * - * Local variables: - * c-basic-offset: 4 - * tab-width: 8 - * indent-tabs-mode: nil - * End: - * - * vi: set shiftwidth=4 tabstop=8 expandtab: - * :indentSize=4:tabSize=8:noTabs=true: - */ diff --git a/ui/cli/tap-icmpv6stat.c b/ui/cli/tap-icmpv6stat.c index 0920e4b71e..6bd126b11b 100644 --- a/ui/cli/tap-icmpv6stat.c +++ b/ui/cli/tap-icmpv6stat.c @@ -313,16 +313,3 @@ register_tap_listener_icmpv6stat(void) { register_stat_tap_ui(&icmpv6stat_ui, NULL); } - -/* - * Editor modelines - https://www.wireshark.org/tools/modelines.html - * - * Local variables: - * c-basic-offset: 4 - * tab-width: 8 - * indent-tabs-mode: nil - * End: - * - * vi: set shiftwidth=4 tabstop=8 expandtab: - * :indentSize=4:tabSize=8:noTabs=true: - */ diff --git a/ui/cli/tap-iostat.c b/ui/cli/tap-iostat.c index 6640a59a09..9cc9c3484e 100644 --- a/ui/cli/tap-iostat.c +++ b/ui/cli/tap-iostat.c @@ -1538,16 +1538,3 @@ register_tap_listener_iostat(void) { register_stat_tap_ui(&iostat_ui, NULL); } - -/* - * Editor modelines - https://www.wireshark.org/tools/modelines.html - * - * Local variables: - * c-basic-offset: 4 - * tab-width: 8 - * indent-tabs-mode: nil - * End: - * - * vi: set shiftwidth=4 tabstop=8 expandtab: - * :indentSize=4:tabSize=8:noTabs=true: - */ diff --git a/ui/cli/tap-macltestat.c b/ui/cli/tap-macltestat.c index 13b2ad66d1..26380261c8 100644 --- a/ui/cli/tap-macltestat.c +++ b/ui/cli/tap-macltestat.c @@ -549,16 +549,3 @@ register_tap_listener_mac_lte_stat(void) { register_stat_tap_ui(&mac_lte_stat_ui, NULL); } - -/* - * Editor modelines - https://www.wireshark.org/tools/modelines.html - * - * Local variables: - * c-basic-offset: 4 - * tab-width: 8 - * indent-tabs-mode: nil - * End: - * - * vi: set shiftwidth=4 tabstop=8 expandtab: - * :indentSize=4:tabSize=8:noTabs=true: - */ diff --git a/ui/cli/tap-rlcltestat.c b/ui/cli/tap-rlcltestat.c index 93fb36dc66..06bf65d5f9 100644 --- a/ui/cli/tap-rlcltestat.c +++ b/ui/cli/tap-rlcltestat.c @@ -404,16 +404,3 @@ register_tap_listener_rlc_lte_stat(void) { register_stat_tap_ui(&rlc_lte_stat_ui, NULL); } - -/* - * Editor modelines - https://www.wireshark.org/tools/modelines.html - * - * Local variables: - * c-basic-offset: 4 - * tab-width: 8 - * indent-tabs-mode: nil - * End: - * - * vi: set shiftwidth=4 tabstop=8 expandtab: - * :indentSize=4:tabSize=8:noTabs=true: - */ diff --git a/ui/cli/tap-rtp.c b/ui/cli/tap-rtp.c index 75a8bf961c..6291c15766 100644 --- a/ui/cli/tap-rtp.c +++ b/ui/cli/tap-rtp.c @@ -121,16 +121,3 @@ register_tap_listener_rtpstreams(void) { register_stat_tap_ui(&rtpstreams_stat_ui, NULL); } - -/* - * Editor modelines - https://www.wireshark.org/tools/modelines.html - * - * Local variables: - * c-basic-offset: 4 - * tab-width: 8 - * indent-tabs-mode: nil - * End: - * - * vi: set shiftwidth=4 tabstop=8 expandtab: - * :indentSize=4:tabSize=8:noTabs=true: - */ |