Skip to content

Commit 4a1e357

Browse files
committed
indexer constants: remove a bunch of dead constants
1 parent e70e71e commit 4a1e357

File tree

1 file changed

+11
-25
lines changed

1 file changed

+11
-25
lines changed

lib/PAUSE/mldistwatch/Constants.pm

Lines changed: 11 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -5,42 +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 EMETAUNSTABLE => 6;
19-
use constant EBAREPMFILE => 5;
2015
use constant EOLDRELEASE => 4;
21-
use constant EMTIMEFALLING => 3; # deprecated after rev 478
2216
use constant EVERFALLING => 2;
2317
use constant OK => 1;
2418

2519
our $heading = {
26-
EBADVERSION() => "Version string is not a valid 'lax version' string",
27-
ELONGVERSION() => "Version string exceeds maximum allowed length of 16b",
28-
E_DB_XACTFAIL() => "ERROR: Database error occurred during index update",
29-
EBAREPMFILE() => "Bare .pm files are not indexed",
30-
EDBCONFLICT() => "Conflicting record found in index",
31-
EDBERR() => "Database error",
32-
EDUALOLDER() => "An older dual-life module stays reference",
33-
EDUALYOUNGER() => "Dual-life module stays reference",
34-
EDISTNAMEPERM() => "No permissions for distribution name",
35-
EMISSPERM() => "Permission missing",
36-
EMTIMEFALLING() => "Decreasing mtime on a file (category to be deprecated)",
37-
ENOMETAFILE() => "Distribution included neither META.json nor META.yml",
38-
EOLDRELEASE() => "Release seems outdated",
39-
EOPENFILE() => "Problem while reading the distribtion",
40-
EMETAUNSTABLE() => "META release_status is not stable, will not index",
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",
4129
EPARSEVERSION() => "Version parsing problem",
42-
EVERFALLING() => "Decreasing version number",
43-
OK() => "Successfully indexed",
30+
EVERFALLING() => "Decreasing version number",
31+
OK() => "Successfully indexed",
4432
};
4533

4634
sub heading ($) {
@@ -50,5 +38,3 @@ sub heading ($) {
5038
}
5139

5240
1;
53-
54-

0 commit comments

Comments
 (0)