From 860e4c4943ad062bd0eff99f28e7d64804b3c08e Mon Sep 17 00:00:00 2001 From: Eli Schwartz Date: Thu, 3 May 2018 00:10:20 -0400 Subject: Remove all modelines from the project Many of these are pointless (e.g. there is no need to explicitly turn on spellchecking and language dictionaries for the manpages by default). The only useful modelines are the ones enforcing the project coding standards for indentation style (and "maybe" filetype/syntax, but everything except the asciidoc manpages and makepkg.conf is already autodetected), and indent style can be applied more easily with .editorconfig Signed-off-by: Eli Schwartz Signed-off-by: Allan McRae --- src/common/Makefile.am | 2 -- src/common/ini.c | 2 -- src/common/ini.h | 2 -- src/common/util-common.c | 2 -- src/common/util-common.h | 2 -- src/pacman/Makefile.am | 3 --- src/pacman/callback.c | 2 -- src/pacman/callback.h | 2 -- src/pacman/check.c | 2 -- src/pacman/check.h | 2 -- src/pacman/conf.c | 2 -- src/pacman/conf.h | 2 -- src/pacman/database.c | 2 -- src/pacman/deptest.c | 2 -- src/pacman/files.c | 2 -- src/pacman/package.c | 2 -- src/pacman/package.h | 2 -- src/pacman/pacman.c | 2 -- src/pacman/pacman.h | 2 -- src/pacman/query.c | 2 -- src/pacman/remove.c | 2 -- src/pacman/sighandler.c | 2 -- src/pacman/sighandler.h | 2 -- src/pacman/sync.c | 2 -- src/pacman/upgrade.c | 2 -- src/pacman/util.c | 2 -- src/pacman/util.h | 2 -- src/util/Makefile.am | 2 -- src/util/cleanupdelta.c | 2 -- 29 files changed, 59 deletions(-) (limited to 'src') diff --git a/src/common/Makefile.am b/src/common/Makefile.am index ba402b2d..c0e37273 100644 --- a/src/common/Makefile.am +++ b/src/common/Makefile.am @@ -1,4 +1,2 @@ EXTRA_DIST = \ util-common.h util-common.c - -# vim:set noet: diff --git a/src/common/ini.c b/src/common/ini.c index ae5d555d..9d656781 100644 --- a/src/common/ini.c +++ b/src/common/ini.c @@ -107,5 +107,3 @@ cleanup: free(section_name); return ret; } - -/* vim: set noet: */ diff --git a/src/common/ini.h b/src/common/ini.h index 22dbed91..6d2b264a 100644 --- a/src/common/ini.h +++ b/src/common/ini.h @@ -26,5 +26,3 @@ typedef int (ini_parser_fn)(const char *file, int line, const char *section, int parse_ini(const char *file, ini_parser_fn cb, void *data); #endif /* PM_INI_H */ - -/* vim: set noet: */ diff --git a/src/common/util-common.c b/src/common/util-common.c index f45524b0..3aa0eac9 100644 --- a/src/common/util-common.c +++ b/src/common/util-common.c @@ -197,5 +197,3 @@ char *strndup(const char *s, size_t n) return (char *)memcpy(new, s, len); } #endif - -/* vim: set noet: */ diff --git a/src/common/util-common.h b/src/common/util-common.h index 5e886c82..3434e1eb 100644 --- a/src/common/util-common.h +++ b/src/common/util-common.h @@ -39,5 +39,3 @@ char *strndup(const char *s, size_t n); #define ARRAYSIZE(a) (sizeof (a) / sizeof (a[0])) #endif /* PM_UTIL_COMMON_H */ - -/* vim: set noet: */ diff --git a/src/pacman/Makefile.am b/src/pacman/Makefile.am index a1adfcaa..2344daff 100644 --- a/src/pacman/Makefile.am +++ b/src/pacman/Makefile.am @@ -65,6 +65,3 @@ pacman_conf_SOURCES = pacman-conf.c \ conf.c pacman_conf_LDADD = $(top_builddir)/lib/libalpm/.libs/libalpm.la - - -# vim:set noet: diff --git a/src/pacman/callback.c b/src/pacman/callback.c index 1756d624..ee75297c 100644 --- a/src/pacman/callback.c +++ b/src/pacman/callback.c @@ -884,5 +884,3 @@ void cb_log(alpm_loglevel_t level, const char *fmt, va_list args) pm_vfprintf(stderr, level, fmt, args); } } - -/* vim: set noet: */ diff --git a/src/pacman/callback.h b/src/pacman/callback.h index 555c396d..e49f86dd 100644 --- a/src/pacman/callback.h +++ b/src/pacman/callback.h @@ -44,5 +44,3 @@ __attribute__((format(printf, 2, 0))) void cb_log(alpm_loglevel_t level, const char *fmt, va_list args); #endif /* PM_CALLBACK_H */ - -/* vim: set noet: */ diff --git a/src/pacman/check.c b/src/pacman/check.c index 9b61a1ed..62c0ca8e 100644 --- a/src/pacman/check.c +++ b/src/pacman/check.c @@ -390,5 +390,3 @@ int check_pkg_full(alpm_pkg_t *pkg) return (errors != 0 ? 1 : 0); } - -/* vim: set noet: */ diff --git a/src/pacman/check.h b/src/pacman/check.h index a3930b6b..d9fd6902 100644 --- a/src/pacman/check.h +++ b/src/pacman/check.h @@ -26,5 +26,3 @@ int check_pkg_fast(alpm_pkg_t *pkg); int check_pkg_full(alpm_pkg_t *pkg); #endif /* PM_CHECK_H */ - -/* vim: set noet: */ diff --git a/src/pacman/conf.c b/src/pacman/conf.c index 4ca97d86..9a37dcea 100644 --- a/src/pacman/conf.c +++ b/src/pacman/conf.c @@ -1073,5 +1073,3 @@ int parseconfig(const char *file) config->repos = NULL; return ret; } - -/* vim: set noet: */ diff --git a/src/pacman/conf.h b/src/pacman/conf.h index 39488062..ababf2e0 100644 --- a/src/pacman/conf.h +++ b/src/pacman/conf.h @@ -245,5 +245,3 @@ int parseconfig(const char *file); int parseconfigfile(const char *file); int setdefaults(config_t *c); #endif /* PM_CONF_H */ - -/* vim: set noet: */ diff --git a/src/pacman/database.c b/src/pacman/database.c index f8c7ef62..f3b890ce 100644 --- a/src/pacman/database.c +++ b/src/pacman/database.c @@ -300,5 +300,3 @@ int pacman_database(alpm_list_t *targets) return ret; } - -/* vim: set noet: */ diff --git a/src/pacman/deptest.c b/src/pacman/deptest.c index 09da1a67..597eee42 100644 --- a/src/pacman/deptest.c +++ b/src/pacman/deptest.c @@ -53,5 +53,3 @@ int pacman_deptest(alpm_list_t *targets) alpm_list_free(deps); return 127; } - -/* vim: set noet: */ diff --git a/src/pacman/files.c b/src/pacman/files.c index 79feec74..d7fc5446 100644 --- a/src/pacman/files.c +++ b/src/pacman/files.c @@ -323,5 +323,3 @@ int pacman_files(alpm_list_t *targets) return 0; } - -/* vim: set noet: */ diff --git a/src/pacman/package.c b/src/pacman/package.c index be5456aa..e80c5953 100644 --- a/src/pacman/package.c +++ b/src/pacman/package.c @@ -568,5 +568,3 @@ int dump_pkg_search(alpm_db_t *db, alpm_list_t *targets, int show_status) return 0; } - -/* vim: set noet: */ diff --git a/src/pacman/package.h b/src/pacman/package.h index 983fd822..68c2a630 100644 --- a/src/pacman/package.h +++ b/src/pacman/package.h @@ -32,5 +32,3 @@ void print_installed(alpm_db_t *db_local, alpm_pkg_t *pkg); int dump_pkg_search(alpm_db_t *db, alpm_list_t *targets, int show_status); #endif /* PM_PACKAGE_H */ - -/* vim: set noet: */ diff --git a/src/pacman/pacman.c b/src/pacman/pacman.c index b1ef163b..fe54793e 100644 --- a/src/pacman/pacman.c +++ b/src/pacman/pacman.c @@ -1304,5 +1304,3 @@ int main(int argc, char *argv[]) /* not reached */ return EXIT_SUCCESS; } - -/* vim: set noet: */ diff --git a/src/pacman/pacman.h b/src/pacman/pacman.h index 05febffc..50ecc110 100644 --- a/src/pacman/pacman.h +++ b/src/pacman/pacman.h @@ -41,5 +41,3 @@ int sync_prepare_execute(void); int pacman_upgrade(alpm_list_t *targets); #endif /* PM_PACMAN_H */ - -/* vim: set noet: */ diff --git a/src/pacman/query.c b/src/pacman/query.c index c1ea855d..00c39638 100644 --- a/src/pacman/query.c +++ b/src/pacman/query.c @@ -511,5 +511,3 @@ int pacman_query(alpm_list_t *targets) return ret; } - -/* vim: set noet: */ diff --git a/src/pacman/remove.c b/src/pacman/remove.c index bca4910e..a2269ed8 100644 --- a/src/pacman/remove.c +++ b/src/pacman/remove.c @@ -186,5 +186,3 @@ cleanup: } return retval; } - -/* vim: set noet: */ diff --git a/src/pacman/sighandler.c b/src/pacman/sighandler.c index f59d23f5..ebcdebae 100644 --- a/src/pacman/sighandler.c +++ b/src/pacman/sighandler.c @@ -115,5 +115,3 @@ void install_winch_handler(void) new_action.sa_flags = SA_RESTART; sigaction(SIGWINCH, &new_action, NULL); } - -/* vim: set noet: */ diff --git a/src/pacman/sighandler.h b/src/pacman/sighandler.h index ee2be333..24393c74 100644 --- a/src/pacman/sighandler.h +++ b/src/pacman/sighandler.h @@ -26,5 +26,3 @@ void install_soft_interrupt_handler(void); void remove_soft_interrupt_handler(void); #endif /* PM_SIGHANDLER_H */ - -/* vim: set noet: */ diff --git a/src/pacman/sync.c b/src/pacman/sync.c index 6453e5e4..3c6be89d 100644 --- a/src/pacman/sync.c +++ b/src/pacman/sync.c @@ -942,5 +942,3 @@ int pacman_sync(alpm_list_t *targets) return sync_trans(targets); } - -/* vim: set noet: */ diff --git a/src/pacman/upgrade.c b/src/pacman/upgrade.c index b1675a6f..8c63c124 100644 --- a/src/pacman/upgrade.c +++ b/src/pacman/upgrade.c @@ -129,5 +129,3 @@ fail_free: return retval; } - -/* vim: set noet: */ diff --git a/src/pacman/util.c b/src/pacman/util.c index 4bcc0362..74e1037d 100644 --- a/src/pacman/util.c +++ b/src/pacman/util.c @@ -1771,5 +1771,3 @@ int pm_vfprintf(FILE *stream, alpm_loglevel_t level, const char *format, va_list ret = vfprintf(stream, format, args); return ret; } - -/* vim: set noet: */ diff --git a/src/pacman/util.h b/src/pacman/util.h index ab1dbb72..a1fbef46 100644 --- a/src/pacman/util.h +++ b/src/pacman/util.h @@ -84,5 +84,3 @@ int pm_sprintf(char **string, alpm_loglevel_t level, const char *format, ...) __ int pm_vasprintf(char **string, alpm_loglevel_t level, const char *format, va_list args) __attribute__((format(printf,3,0))); #endif /* PM_UTIL_H */ - -/* vim: set noet: */ diff --git a/src/util/Makefile.am b/src/util/Makefile.am index 562151bc..470c79f5 100644 --- a/src/util/Makefile.am +++ b/src/util/Makefile.am @@ -26,5 +26,3 @@ testpkg_LDADD = $(top_builddir)/lib/libalpm/.libs/libalpm.la vercmp_SOURCES = vercmp.c vercmp_LDADD = $(top_builddir)/lib/libalpm/libalpm_la-version.lo - -# vim:set noet: diff --git a/src/util/cleanupdelta.c b/src/util/cleanupdelta.c index b1f024c5..34e09c52 100644 --- a/src/util/cleanupdelta.c +++ b/src/util/cleanupdelta.c @@ -133,5 +133,3 @@ int main(int argc, char *argv[]) cleanup(0); } - -/* vim: set noet: */ -- cgit v1.2.3-70-g09d2