Skip to content

Commit ee215ba

Browse files
committed
indexer constants: remove a bunch of dead constants
1 parent 3ba026e commit ee215ba

File tree

1 file changed

+11
-20
lines changed

1 file changed

+11
-20
lines changed

lib/PAUSE/mldistwatch/Constants.pm

Lines changed: 11 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -5,39 +5,30 @@ package PAUSE::mldistwatch::Constants;
55
# constants used for index_status:
66
use constant EDUALOLDER => 50; # pumpkings only
77
use constant EDUALYOUNGER => 30; # pumpkings only
8-
use constant EDISTNAMEPERM => 26;
98
use constant EDBERR => 25;
109
use constant EDBCONFLICT => 23;
1110
use constant EOPENFILE => 21;
1211
use constant EMISSPERM => 20;
1312
use constant ELONGVERSION => 13;
1413
use constant EBADVERSION => 12;
1514
use constant EPARSEVERSION => 10;
16-
use constant ENOMETAFILE => 8;
17-
use constant E_DB_XACTFAIL => 7;
18-
use constant EBAREPMFILE => 5;
1915
use constant EOLDRELEASE => 4;
20-
use constant EMTIMEFALLING => 3; # deprecated after rev 478
2116
use constant EVERFALLING => 2;
2217
use constant OK => 1;
2318

2419
our $heading = {
25-
EBADVERSION() => "Version string is not a valid 'lax version' string",
26-
ELONGVERSION() => "Version string exceeds maximum allowed length of 16b",
27-
EBAREPMFILE() => "Bare .pm files are not indexed",
28-
EDBCONFLICT() => "Conflicting record found in index",
29-
EDBERR() => "Database error",
30-
EDUALOLDER() => "An older dual-life module stays reference",
31-
EDUALYOUNGER() => "Dual-life module stays reference",
32-
EDISTNAMEPERM() => "No permissions for distribution name",
33-
EMISSPERM() => "Permission missing",
34-
EMTIMEFALLING() => "Decreasing mtime on a file (category to be deprecated)",
35-
ENOMETAFILE() => "Distribution included neither META.json nor META.yml",
36-
EOLDRELEASE() => "Release seems outdated",
37-
EOPENFILE() => "Problem while reading the distribtion",
20+
EBADVERSION() => "Version string is not a valid 'lax version' string",
21+
ELONGVERSION() => "Version string exceeds maximum allowed length of 16b",
22+
EDBCONFLICT() => "Conflicting record found in index",
23+
EDBERR() => "Database error",
24+
EDUALOLDER() => "An older dual-life module stays reference",
25+
EDUALYOUNGER() => "Dual-life module stays reference",
26+
EMISSPERM() => "Permission missing",
27+
EOLDRELEASE() => "Release seems outdated",
28+
EOPENFILE() => "Problem while reading the distribtion",
3829
EPARSEVERSION() => "Version parsing problem",
39-
EVERFALLING() => "Decreasing version number",
40-
OK() => "Successfully indexed",
30+
EVERFALLING() => "Decreasing version number",
31+
OK() => "Successfully indexed",
4132
};
4233

4334
sub heading ($) {

0 commit comments

Comments
 (0)