summaryrefslogtreecommitdiff
path: root/pp_sort.c
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2021-06-15 12:34:22 +0000
committerKarl Williamson <khw@cpan.org>2021-07-31 15:24:26 -0700
commit4c8bd78b274a8ba54f3dd4b06b10a2a57cb9cf4a (patch)
tree659ce426777efd1eb1cbababa7aec1c4a277394b /pp_sort.c
parent900d3b30296b2e23a5ebe1c5e277b46665a1ce6d (diff)
downloadperl-4c8bd78b274a8ba54f3dd4b06b10a2a57cb9cf4a.tar.gz
Remove the flags OPpSORT_STABLE and OPpSORT_UNSTABLE.
Remove the code in Perl_ck_sort() that reads from PL_hintgv that sets these, and the code in pp_sort that reads them and sets SORTf_STABLE and SORTf_UNSTABLE (which were no longer read. Remove these too.)
Diffstat (limited to 'pp_sort.c')
-rw-r--r--pp_sort.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/pp_sort.c b/pp_sort.c
index adb2fee6b1..8cc90a1ade 100644
--- a/pp_sort.c
+++ b/pp_sort.c
@@ -34,10 +34,6 @@
#define SMALLSORT (200)
#endif
-/* Flags for sortsv_flags */
-#define SORTf_STABLE 1
-#define SORTf_UNSTABLE 2
-
/*
* The mergesort implementation is by Peter M. Mcilroy <pmcilroy@lucent.com>.
*
@@ -711,10 +707,6 @@ PP(pp_sort)
if ((priv & OPpSORT_DESCEND) != 0)
descending = 1;
- if ((priv & OPpSORT_STABLE) != 0)
- sort_flags |= SORTf_STABLE;
- if ((priv & OPpSORT_UNSTABLE) != 0)
- sort_flags |= SORTf_UNSTABLE;
if (gimme != G_LIST) {
SP = MARK;