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 --- lib/libalpm/Makefile.am | 2 -- lib/libalpm/add.c | 2 -- lib/libalpm/add.h | 2 -- lib/libalpm/alpm.c | 2 -- lib/libalpm/alpm.h | 2 -- lib/libalpm/alpm_list.c | 2 -- lib/libalpm/alpm_list.h | 2 -- lib/libalpm/backup.c | 2 -- lib/libalpm/backup.h | 2 -- lib/libalpm/be_local.c | 2 -- lib/libalpm/be_package.c | 2 -- lib/libalpm/be_sync.c | 2 -- lib/libalpm/conflict.c | 2 -- lib/libalpm/conflict.h | 2 -- lib/libalpm/db.c | 2 -- lib/libalpm/db.h | 2 -- lib/libalpm/delta.c | 2 -- lib/libalpm/delta.h | 2 -- lib/libalpm/deps.c | 1 - lib/libalpm/deps.h | 2 -- lib/libalpm/diskspace.c | 2 -- lib/libalpm/diskspace.h | 2 -- lib/libalpm/dload.c | 2 -- lib/libalpm/dload.h | 2 -- lib/libalpm/error.c | 2 -- lib/libalpm/filelist.c | 2 -- lib/libalpm/filelist.h | 2 -- lib/libalpm/graph.c | 2 -- lib/libalpm/graph.h | 2 -- lib/libalpm/group.c | 2 -- lib/libalpm/group.h | 2 -- lib/libalpm/handle.c | 2 -- lib/libalpm/handle.h | 2 -- lib/libalpm/hook.c | 2 -- lib/libalpm/hook.h | 2 -- lib/libalpm/libarchive-compat.h | 2 -- lib/libalpm/log.c | 2 -- lib/libalpm/log.h | 2 -- lib/libalpm/package.c | 2 -- lib/libalpm/package.h | 2 -- lib/libalpm/pkghash.c | 2 -- lib/libalpm/rawstr.c | 2 -- lib/libalpm/remove.c | 2 -- lib/libalpm/remove.h | 2 -- lib/libalpm/signing.c | 2 -- lib/libalpm/signing.h | 2 -- lib/libalpm/sync.c | 2 -- lib/libalpm/sync.h | 2 -- lib/libalpm/trans.c | 1 - lib/libalpm/trans.h | 2 -- lib/libalpm/util.c | 2 -- lib/libalpm/util.h | 2 -- lib/libalpm/version.c | 2 -- 53 files changed, 104 deletions(-) (limited to 'lib') diff --git a/lib/libalpm/Makefile.am b/lib/libalpm/Makefile.am index f4f20e61..8201dcbd 100644 --- a/lib/libalpm/Makefile.am +++ b/lib/libalpm/Makefile.am @@ -75,5 +75,3 @@ libalpm_la_LIBADD = \ $(LIBCURL_LIBS) \ $(LIBSSL_LIBS) \ $(NETTLE_LIBS) - -# vim:set noet: diff --git a/lib/libalpm/add.c b/lib/libalpm/add.c index e193ae0f..5a3e06b8 100644 --- a/lib/libalpm/add.c +++ b/lib/libalpm/add.c @@ -694,5 +694,3 @@ int _alpm_upgrade_packages(alpm_handle_t *handle) return ret; } - -/* vim: set noet: */ diff --git a/lib/libalpm/add.h b/lib/libalpm/add.h index 7c93843e..e9125c78 100644 --- a/lib/libalpm/add.h +++ b/lib/libalpm/add.h @@ -27,5 +27,3 @@ int _alpm_upgrade_packages(alpm_handle_t *handle); #endif /* ALPM_ADD_H */ - -/* vim: set noet: */ diff --git a/lib/libalpm/alpm.c b/lib/libalpm/alpm.c index f5114e13..0f3db6f4 100644 --- a/lib/libalpm/alpm.c +++ b/lib/libalpm/alpm.c @@ -166,5 +166,3 @@ int SYMEXPORT alpm_capabilities(void) #endif | 0; } - -/* vim: set noet: */ diff --git a/lib/libalpm/alpm.h b/lib/libalpm/alpm.h index 02d5e584..57226ebd 100644 --- a/lib/libalpm/alpm.h +++ b/lib/libalpm/alpm.h @@ -1646,5 +1646,3 @@ void alpm_conflict_free(alpm_conflict_t *conflict); } #endif #endif /* ALPM_H */ - -/* vim: set noet: */ diff --git a/lib/libalpm/alpm_list.c b/lib/libalpm/alpm_list.c index 8a907ff2..f2b10be4 100644 --- a/lib/libalpm/alpm_list.c +++ b/lib/libalpm/alpm_list.c @@ -842,5 +842,3 @@ void SYMEXPORT *alpm_list_to_array(const alpm_list_t *list, size_t n, } /** @} */ - -/* vim: set noet: */ diff --git a/lib/libalpm/alpm_list.h b/lib/libalpm/alpm_list.h index aa79e69e..8a2c5b2b 100644 --- a/lib/libalpm/alpm_list.h +++ b/lib/libalpm/alpm_list.h @@ -92,5 +92,3 @@ void *alpm_list_to_array(const alpm_list_t *list, size_t n, size_t size); } #endif #endif /* ALPM_LIST_H */ - -/* vim: set noet: */ diff --git a/lib/libalpm/backup.c b/lib/libalpm/backup.c index 3e42b585..6640c5e6 100644 --- a/lib/libalpm/backup.c +++ b/lib/libalpm/backup.c @@ -98,5 +98,3 @@ error: free(newbackup); return NULL; } - -/* vim: set noet: */ diff --git a/lib/libalpm/backup.h b/lib/libalpm/backup.h index 1580426b..00e39b40 100644 --- a/lib/libalpm/backup.h +++ b/lib/libalpm/backup.h @@ -29,5 +29,3 @@ void _alpm_backup_free(alpm_backup_t *backup); alpm_backup_t *_alpm_backup_dup(const alpm_backup_t *backup); #endif /* ALPM_BACKUP_H */ - -/* vim: set noet: */ diff --git a/lib/libalpm/be_local.c b/lib/libalpm/be_local.c index 2b4d9330..7c2f96b8 100644 --- a/lib/libalpm/be_local.c +++ b/lib/libalpm/be_local.c @@ -1166,5 +1166,3 @@ alpm_db_t *_alpm_db_register_local(alpm_handle_t *handle) handle->db_local = db; return db; } - -/* vim: set noet: */ diff --git a/lib/libalpm/be_package.c b/lib/libalpm/be_package.c index 9daf28af..ac911bdb 100644 --- a/lib/libalpm/be_package.c +++ b/lib/libalpm/be_package.c @@ -788,5 +788,3 @@ int SYMEXPORT alpm_pkg_load(alpm_handle_t *handle, const char *filename, int ful return 0; } - -/* vim: set noet: */ diff --git a/lib/libalpm/be_sync.c b/lib/libalpm/be_sync.c index 0ccb7209..5009a7da 100644 --- a/lib/libalpm/be_sync.c +++ b/lib/libalpm/be_sync.c @@ -805,5 +805,3 @@ alpm_db_t *_alpm_db_register_sync(alpm_handle_t *handle, const char *treename, handle->dbs_sync = alpm_list_add(handle->dbs_sync, db); return db; } - -/* vim: set noet: */ diff --git a/lib/libalpm/conflict.c b/lib/libalpm/conflict.c index 16ad19ab..35946de5 100644 --- a/lib/libalpm/conflict.c +++ b/lib/libalpm/conflict.c @@ -700,5 +700,3 @@ alpm_list_t *_alpm_db_find_fileconflicts(alpm_handle_t *handle, return conflicts; } - -/* vim: set noet: */ diff --git a/lib/libalpm/conflict.h b/lib/libalpm/conflict.h index a2cdd171..2deff79b 100644 --- a/lib/libalpm/conflict.h +++ b/lib/libalpm/conflict.h @@ -31,5 +31,3 @@ alpm_list_t *_alpm_db_find_fileconflicts(alpm_handle_t *handle, alpm_list_t *upgrade, alpm_list_t *remove); #endif /* ALPM_CONFLICT_H */ - -/* vim: set noet: */ diff --git a/lib/libalpm/db.c b/lib/libalpm/db.c index 35045fe5..aa7f2af7 100644 --- a/lib/libalpm/db.c +++ b/lib/libalpm/db.c @@ -726,5 +726,3 @@ alpm_group_t *_alpm_db_get_groupfromcache(alpm_db_t *db, const char *target) return NULL; } - -/* vim: set noet: */ diff --git a/lib/libalpm/db.h b/lib/libalpm/db.h index 1cb737ab..60062056 100644 --- a/lib/libalpm/db.h +++ b/lib/libalpm/db.h @@ -112,5 +112,3 @@ alpm_list_t *_alpm_db_get_groupcache(alpm_db_t *db); alpm_group_t *_alpm_db_get_groupfromcache(alpm_db_t *db, const char *target); #endif /* ALPM_DB_H */ - -/* vim: set noet: */ diff --git a/lib/libalpm/delta.c b/lib/libalpm/delta.c index d8e696dc..33da4a3f 100644 --- a/lib/libalpm/delta.c +++ b/lib/libalpm/delta.c @@ -359,5 +359,3 @@ error: _alpm_delta_free(newdelta); return NULL; } - -/* vim: set noet: */ diff --git a/lib/libalpm/delta.h b/lib/libalpm/delta.h index c9d57c89..d80c0745 100644 --- a/lib/libalpm/delta.h +++ b/lib/libalpm/delta.h @@ -31,5 +31,3 @@ off_t _alpm_shortest_delta_path(alpm_handle_t *handle, alpm_list_t *deltas, const char *to, alpm_list_t **path); #endif /* ALPM_DELTA_H */ - -/* vim: set noet: */ diff --git a/lib/libalpm/deps.c b/lib/libalpm/deps.c index 20ec9bc4..71185c68 100644 --- a/lib/libalpm/deps.c +++ b/lib/libalpm/deps.c @@ -954,4 +954,3 @@ char SYMEXPORT *alpm_dep_compute_string(const alpm_depend_t *dep) return str; } -/* vim: set noet: */ diff --git a/lib/libalpm/deps.h b/lib/libalpm/deps.h index c707998e..788b4573 100644 --- a/lib/libalpm/deps.h +++ b/lib/libalpm/deps.h @@ -39,5 +39,3 @@ int _alpm_depcmp_provides(alpm_depend_t *dep, alpm_list_t *provisions); int _alpm_depcmp(alpm_pkg_t *pkg, alpm_depend_t *dep); #endif /* ALPM_DEPS_H */ - -/* vim: set noet: */ diff --git a/lib/libalpm/diskspace.c b/lib/libalpm/diskspace.c index 25204f17..00745a9a 100644 --- a/lib/libalpm/diskspace.c +++ b/lib/libalpm/diskspace.c @@ -500,5 +500,3 @@ finish: return 0; } - -/* vim: set noet: */ diff --git a/lib/libalpm/diskspace.h b/lib/libalpm/diskspace.h index ffc819b3..8100dd6f 100644 --- a/lib/libalpm/diskspace.h +++ b/lib/libalpm/diskspace.h @@ -61,5 +61,3 @@ int _alpm_check_downloadspace(alpm_handle_t *handle, const char *cachedir, size_t num_files, off_t *file_sizes); #endif /* ALPM_DISKSPACE_H */ - -/* vim: set noet: */ diff --git a/lib/libalpm/dload.c b/lib/libalpm/dload.c index f06caad8..eeef32f5 100644 --- a/lib/libalpm/dload.c +++ b/lib/libalpm/dload.c @@ -734,5 +734,3 @@ void _alpm_dload_payload_reset_for_retry(struct dload_payload *payload) payload->unlink_on_fail = 0; payload->cb_initialized = 0; } - -/* vim: set noet: */ diff --git a/lib/libalpm/dload.h b/lib/libalpm/dload.h index d69d5926..20a1ff3c 100644 --- a/lib/libalpm/dload.h +++ b/lib/libalpm/dload.h @@ -54,5 +54,3 @@ int _alpm_download(struct dload_payload *payload, const char *localpath, char **final_file, const char **final_url); #endif /* ALPM_DLOAD_H */ - -/* vim: set noet: */ diff --git a/lib/libalpm/error.c b/lib/libalpm/error.c index 28b2e36d..b4fc99ae 100644 --- a/lib/libalpm/error.c +++ b/lib/libalpm/error.c @@ -164,5 +164,3 @@ const char SYMEXPORT *alpm_strerror(alpm_errno_t err) return _("unexpected error"); } } - -/* vim: set noet: */ diff --git a/lib/libalpm/filelist.c b/lib/libalpm/filelist.c index 1048a4a1..0d01c0f6 100644 --- a/lib/libalpm/filelist.c +++ b/lib/libalpm/filelist.c @@ -145,5 +145,3 @@ void _alpm_filelist_sort(alpm_filelist_t *filelist) } } } - -/* vim: set noet: */ diff --git a/lib/libalpm/filelist.h b/lib/libalpm/filelist.h index 04a005fe..0b0de37e 100644 --- a/lib/libalpm/filelist.h +++ b/lib/libalpm/filelist.h @@ -30,5 +30,3 @@ alpm_list_t *_alpm_filelist_intersection(alpm_filelist_t *filesA, void _alpm_filelist_sort(alpm_filelist_t *filelist); #endif /* ALPM_FILELIST_H */ - -/* vim: set noet: */ diff --git a/lib/libalpm/graph.c b/lib/libalpm/graph.c index c0b8162a..98c2227f 100644 --- a/lib/libalpm/graph.c +++ b/lib/libalpm/graph.c @@ -36,5 +36,3 @@ void _alpm_graph_free(void *data) alpm_list_free(graph->children); free(graph); } - -/* vim: set noet: */ diff --git a/lib/libalpm/graph.h b/lib/libalpm/graph.h index 98ae16ea..d8d9ae4c 100644 --- a/lib/libalpm/graph.h +++ b/lib/libalpm/graph.h @@ -42,5 +42,3 @@ alpm_graph_t *_alpm_graph_new(void); void _alpm_graph_free(void *data); #endif /* ALPM_GRAPH_H */ - -/* vim: set noet: */ diff --git a/lib/libalpm/group.c b/lib/libalpm/group.c index 2808d8f1..9b6e7f21 100644 --- a/lib/libalpm/group.c +++ b/lib/libalpm/group.c @@ -49,5 +49,3 @@ void _alpm_group_free(alpm_group_t *grp) alpm_list_free(grp->packages); FREE(grp); } - -/* vim: set noet: */ diff --git a/lib/libalpm/group.h b/lib/libalpm/group.h index ef46adee..3b7a4644 100644 --- a/lib/libalpm/group.h +++ b/lib/libalpm/group.h @@ -26,5 +26,3 @@ alpm_group_t *_alpm_group_new(const char *name); void _alpm_group_free(alpm_group_t *grp); #endif /* ALPM_GROUP_H */ - -/* vim: set noet: */ diff --git a/lib/libalpm/handle.c b/lib/libalpm/handle.c index 2bd360bf..2213ce53 100644 --- a/lib/libalpm/handle.c +++ b/lib/libalpm/handle.c @@ -876,5 +876,3 @@ int SYMEXPORT alpm_option_set_disable_dl_timeout(alpm_handle_t *handle, #endif return 0; } - -/* vim: set noet: */ diff --git a/lib/libalpm/handle.h b/lib/libalpm/handle.h index a7807cad..44c4904b 100644 --- a/lib/libalpm/handle.h +++ b/lib/libalpm/handle.h @@ -126,5 +126,3 @@ alpm_errno_t _alpm_set_directory_option(const char *value, char **storage, int must_exist); #endif /* ALPM_HANDLE_H */ - -/* vim: set noet: */ diff --git a/lib/libalpm/hook.c b/lib/libalpm/hook.c index 89018c4f..0805e661 100644 --- a/lib/libalpm/hook.c +++ b/lib/libalpm/hook.c @@ -782,5 +782,3 @@ cleanup: return ret; } - -/* vim: set noet: */ diff --git a/lib/libalpm/hook.h b/lib/libalpm/hook.h index d7835d87..364d22d7 100644 --- a/lib/libalpm/hook.h +++ b/lib/libalpm/hook.h @@ -25,5 +25,3 @@ int _alpm_hook_run(alpm_handle_t *handle, alpm_hook_when_t when); #endif /* ALPM_HOOK_H */ - -/* vim: set noet: */ diff --git a/lib/libalpm/libarchive-compat.h b/lib/libalpm/libarchive-compat.h index d65e141d..6cf8e0ad 100644 --- a/lib/libalpm/libarchive-compat.h +++ b/lib/libalpm/libarchive-compat.h @@ -69,5 +69,3 @@ static inline int _alpm_archive_read_support_filter_all(struct archive *archive) } #endif /* LIBARCHIVE_COMPAT_H */ - -/* vim: set noet: */ diff --git a/lib/libalpm/log.c b/lib/libalpm/log.c index 1a1f6b49..e46ad3c3 100644 --- a/lib/libalpm/log.c +++ b/lib/libalpm/log.c @@ -121,5 +121,3 @@ void _alpm_log(alpm_handle_t *handle, alpm_loglevel_t flag, const char *fmt, ... handle->logcb(flag, fmt, args); va_end(args); } - -/* vim: set noet: */ diff --git a/lib/libalpm/log.h b/lib/libalpm/log.h index 730ce012..a82cda41 100644 --- a/lib/libalpm/log.h +++ b/lib/libalpm/log.h @@ -28,5 +28,3 @@ void _alpm_log(alpm_handle_t *handle, alpm_loglevel_t flag, const char *fmt, ...) __attribute__((format(printf,3,4))); #endif /* ALPM_LOG_H */ - -/* vim: set noet: */ diff --git a/lib/libalpm/package.c b/lib/libalpm/package.c index b9fef335..97a78781 100644 --- a/lib/libalpm/package.c +++ b/lib/libalpm/package.c @@ -805,5 +805,3 @@ int SYMEXPORT alpm_pkg_should_ignore(alpm_handle_t *handle, alpm_pkg_t *pkg) return 0; } - -/* vim: set noet: */ diff --git a/lib/libalpm/package.h b/lib/libalpm/package.h index cab41618..b11d5dda 100644 --- a/lib/libalpm/package.h +++ b/lib/libalpm/package.h @@ -161,5 +161,3 @@ int _alpm_pkg_cmp(const void *p1, const void *p2); int _alpm_pkg_compare_versions(alpm_pkg_t *local_pkg, alpm_pkg_t *pkg); #endif /* ALPM_PACKAGE_H */ - -/* vim: set noet: */ diff --git a/lib/libalpm/pkghash.c b/lib/libalpm/pkghash.c index 1d983916..4ae9541c 100644 --- a/lib/libalpm/pkghash.c +++ b/lib/libalpm/pkghash.c @@ -349,5 +349,3 @@ alpm_pkg_t *_alpm_pkghash_find(alpm_pkghash_t *hash, const char *name) return NULL; } - -/* vim: set noet: */ diff --git a/lib/libalpm/rawstr.c b/lib/libalpm/rawstr.c index f3f81f5a..96d3a911 100644 --- a/lib/libalpm/rawstr.c +++ b/lib/libalpm/rawstr.c @@ -133,5 +133,3 @@ int _alpm_raw_ncmp(const char *first, const char *second, size_t max) return (raw_toupper(*first) - raw_toupper(*second)); } - -/* vim: set noet: */ diff --git a/lib/libalpm/remove.c b/lib/libalpm/remove.c index 8b92a084..78ca5be7 100644 --- a/lib/libalpm/remove.c +++ b/lib/libalpm/remove.c @@ -787,5 +787,3 @@ int _alpm_remove_packages(alpm_handle_t *handle, int run_ldconfig) return ret; } - -/* vim: set noet: */ diff --git a/lib/libalpm/remove.h b/lib/libalpm/remove.h index 6252eeb7..67993bfc 100644 --- a/lib/libalpm/remove.h +++ b/lib/libalpm/remove.h @@ -32,5 +32,3 @@ int _alpm_remove_single_package(alpm_handle_t *handle, size_t targ_count, size_t pkg_count); #endif /* ALPM_REMOVE_H */ - -/* vim: set noet: */ diff --git a/lib/libalpm/signing.c b/lib/libalpm/signing.c index 76641274..df7ac6ca 100644 --- a/lib/libalpm/signing.c +++ b/lib/libalpm/signing.c @@ -1174,5 +1174,3 @@ int SYMEXPORT alpm_extract_keyid(alpm_handle_t *handle, const char *identifier, return 0; } - -/* vim: set noet: */ diff --git a/lib/libalpm/signing.h b/lib/libalpm/signing.h index 2f25f00d..f8b84b94 100644 --- a/lib/libalpm/signing.h +++ b/lib/libalpm/signing.h @@ -35,5 +35,3 @@ int _alpm_key_in_keychain(alpm_handle_t *handle, const char *fpr); int _alpm_key_import(alpm_handle_t *handle, const char *fpr); #endif /* ALPM_SIGNING_H */ - -/* vim: set noet: */ diff --git a/lib/libalpm/sync.c b/lib/libalpm/sync.c index a4d21a00..696a5131 100644 --- a/lib/libalpm/sync.c +++ b/lib/libalpm/sync.c @@ -1417,5 +1417,3 @@ int _alpm_sync_commit(alpm_handle_t *handle) return 0; } - -/* vim: set noet: */ diff --git a/lib/libalpm/sync.h b/lib/libalpm/sync.h index b4dd124c..f9c61491 100644 --- a/lib/libalpm/sync.h +++ b/lib/libalpm/sync.h @@ -30,5 +30,3 @@ int _alpm_sync_check(alpm_handle_t *handle, alpm_list_t **data); int _alpm_sync_commit(alpm_handle_t *handle); #endif /* ALPM_SYNC_H */ - -/* vim: set noet: */ diff --git a/lib/libalpm/trans.c b/lib/libalpm/trans.c index af964832..4d97921f 100644 --- a/lib/libalpm/trans.c +++ b/lib/libalpm/trans.c @@ -445,4 +445,3 @@ alpm_list_t SYMEXPORT *alpm_trans_get_remove(alpm_handle_t *handle) return handle->trans->remove; } -/* vim: set noet: */ diff --git a/lib/libalpm/trans.h b/lib/libalpm/trans.h index a3b1c3b9..f9a87ee7 100644 --- a/lib/libalpm/trans.h +++ b/lib/libalpm/trans.h @@ -53,5 +53,3 @@ int _alpm_runscriptlet(alpm_handle_t *handle, const char *filepath, const char *script, const char *ver, const char *oldver, int is_archive); #endif /* ALPM_TRANS_H */ - -/* vim: set noet: */ diff --git a/lib/libalpm/util.c b/lib/libalpm/util.c index 102a879a..a06f5bfd 100644 --- a/lib/libalpm/util.c +++ b/lib/libalpm/util.c @@ -1463,5 +1463,3 @@ void _alpm_alloc_fail(size_t size) { fprintf(stderr, "alloc failure: could not allocate %zu bytes\n", size); } - -/* vim: set noet: */ diff --git a/lib/libalpm/util.h b/lib/libalpm/util.h index 072799b8..9a3942f1 100644 --- a/lib/libalpm/util.h +++ b/lib/libalpm/util.h @@ -159,5 +159,3 @@ char *strsep(char **, const char *); #define UNUSED __attribute__((unused)) #endif /* ALPM_UTIL_H */ - -/* vim: set noet: */ diff --git a/lib/libalpm/version.c b/lib/libalpm/version.c index 1379e6b3..ac7f09c0 100644 --- a/lib/libalpm/version.c +++ b/lib/libalpm/version.c @@ -272,5 +272,3 @@ int SYMEXPORT alpm_pkg_vercmp(const char *a, const char *b) free(full2); return ret; } - -/* vim: set noet: */ -- cgit v1.2.3-70-g09d2