From 770c9e302850ad18a1b8da18cbdf5d556bac5c11 Mon Sep 17 00:00:00 2001 From: James Coleman Date: Tue, 31 Mar 2020 20:32:22 -0400 Subject: [PATCH v49 5/7] remove dead function --- src/backend/optimizer/path/pathkeys.c | 14 -------------- src/include/optimizer/paths.h | 1 - 2 files changed, 15 deletions(-) diff --git a/src/backend/optimizer/path/pathkeys.c b/src/backend/optimizer/path/pathkeys.c index 71fb790d35..a3f6828436 100644 --- a/src/backend/optimizer/path/pathkeys.c +++ b/src/backend/optimizer/path/pathkeys.c @@ -388,20 +388,6 @@ pathkeys_common_contained_in(List *keys1, List *keys2, int *n_common) return (key1 == NULL); } - -/* - * pathkeys_common - * Returns length of longest common prefix of keys1 and keys2. - */ -int -pathkeys_common(List *keys1, List *keys2) -{ - int n; - - (void) pathkeys_common_contained_in(keys1, keys2, &n); - return n; -} - /* * get_cheapest_path_for_pathkeys * Find the cheapest path (according to the specified criterion) that diff --git a/src/include/optimizer/paths.h b/src/include/optimizer/paths.h index 665f4065a4..c4f77d5137 100644 --- a/src/include/optimizer/paths.h +++ b/src/include/optimizer/paths.h @@ -192,7 +192,6 @@ typedef enum extern PathKeysComparison compare_pathkeys(List *keys1, List *keys2); extern bool pathkeys_contained_in(List *keys1, List *keys2); extern bool pathkeys_common_contained_in(List *keys1, List *keys2, int *n_common); -extern int pathkeys_common(List *keys1, List *keys2); extern Path *get_cheapest_path_for_pathkeys(List *paths, List *pathkeys, Relids required_outer, CostSelector cost_criterion, -- 2.17.1