Skip to content
Browse files

Remove unneeded bootinit

Constants are defined Params::Validate::Constants now
  • Loading branch information...
1 parent f110915 commit 0a546bad0798d010f1fdd950cdcf21a19d8aea64 @autarch committed Feb 10, 2012
Showing with 0 additions and 24 deletions.
  1. +0 −24 lib/Params/Validate/XS.xs
View
24 lib/Params/Validate/XS.xs
@@ -75,27 +75,6 @@
} \
} STMT_END
-/* module initialization */
-static void
-bootinit() {
- HV* stash;
-
- /* define constants */
- stash = gv_stashpv("Params::Validate", 1);
- newCONSTSUB(stash, "SCALAR", newSViv(SCALAR));
- newCONSTSUB(stash, "ARRAYREF", newSViv(ARRAYREF));
- newCONSTSUB(stash, "HASHREF", newSViv(HASHREF));
- newCONSTSUB(stash, "CODEREF", newSViv(CODEREF));
- newCONSTSUB(stash, "GLOB", newSViv(GLOB));
- newCONSTSUB(stash, "GLOBREF", newSViv(GLOBREF));
- newCONSTSUB(stash, "SCALARREF", newSViv(SCALARREF));
- newCONSTSUB(stash, "UNKNOWN", newSViv(UNKNOWN));
- newCONSTSUB(stash, "UNDEF", newSViv(UNDEF));
- newCONSTSUB(stash, "OBJECT", newSViv(OBJECT));
- newCONSTSUB(stash, "HANDLE", newSViv(HANDLE));
- newCONSTSUB(stash, "BOOLEAN", newSViv(BOOLEAN));
-}
-
INLINE static bool
no_validation() {
@@ -1509,9 +1488,6 @@ validate_pos(AV* p, AV* specs, HV* options, AV* ret) {
MODULE = Params::Validate::XS PACKAGE = Params::Validate::XS
-BOOT:
- bootinit();
-
void
validate(p, specs)
SV* p

0 comments on commit 0a546ba

Please sign in to comment.
Something went wrong with that request. Please try again.