summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruce Momjian2011-11-17 18:16:55 +0000
committerBruce Momjian2011-11-17 18:17:33 +0000
commitb735757c3254679af6d6e768e4c59f937e650eb5 (patch)
treea21c1a768117946e59cb8895fbdfdef51729abab
parentb3ad5d02c9cd8a4c884cd78480f221afe8ce5590 (diff)
Remove pg_upgrade function no longer called (dir_matching_filenames).
-rw-r--r--contrib/pg_upgrade/file.c16
-rw-r--r--contrib/pg_upgrade/pg_upgrade.h1
2 files changed, 0 insertions, 17 deletions
diff --git a/contrib/pg_upgrade/file.c b/contrib/pg_upgrade/file.c
index e5d1613182..c7b6f5cbfa 100644
--- a/contrib/pg_upgrade/file.c
+++ b/contrib/pg_upgrade/file.c
@@ -333,22 +333,6 @@ pg_scandir_internal(const char *dirname,
#endif
-/*
- * dir_matching_filenames
- *
- * Return only matching file names during directory scan
- */
-int
-dir_matching_filenames(const struct dirent * scan_ent)
-{
- /* we only compare for string length because the number suffix varies */
- if (!strncmp(scandir_file_pattern, scan_ent->d_name, strlen(scandir_file_pattern)))
- return 1;
-
- return 0;
-}
-
-
void
check_hard_link(void)
{
diff --git a/contrib/pg_upgrade/pg_upgrade.h b/contrib/pg_upgrade/pg_upgrade.h
index b7e4ea5127..d64c72a5cd 100644
--- a/contrib/pg_upgrade/pg_upgrade.h
+++ b/contrib/pg_upgrade/pg_upgrade.h
@@ -333,7 +333,6 @@ const char *setupPageConverter(pageCnvCtx **result);
typedef void *pageCnvCtx;
#endif
-int dir_matching_filenames(const struct dirent * scan_ent);
int pg_scandir(const char *dirname, struct dirent *** namelist,
int (*selector) (const struct dirent *));
const char *copyAndUpdateFile(pageCnvCtx *pageConverter, const char *src,