if these are internal use only, why are they in the public docs
[gitmo/Moose.git] / lib / Class / MOP.pm
index dea5cc9..e9bfbd5 100644 (file)
@@ -29,13 +29,9 @@ BEGIN {
     *check_package_cache_flag = \&mro::get_pkg_gen;
 }
 
-our $AUTHORITY = 'cpan:STEVAN';
-
 XSLoader::load(
     'Moose',
-    $Moose::{VERSION}   ? $Moose::{VERSION}
-    : $ENV{_XS_VERSION} ? $ENV{_XS_VERSION}
-    : ()
+    $Class::MOP::{VERSION} ? ${ $Class::MOP::{VERSION} } : ()
 );
 
 {
@@ -930,18 +926,6 @@ See L<Class::MOP::Instance> for more details.
 
 Note that this module does not export any constants or functions.
 
-=head2 Constants
-
-=over 4
-
-=item I<Class::MOP::IS_RUNNING_ON_5_10>
-
-We set this constant depending on what version perl we are on, this
-allows us to take advantage of new 5.10 features and stay backwards
-compatible.
-
-=back
-
 =head2 Utility functions
 
 Note that these are all called as B<functions, not methods>.
@@ -958,7 +942,7 @@ unconditionally.
 If the module cannot be loaded, an exception is thrown.
 
 You can pass a hash reference with options as second argument. The
-only option currently recognised is C<-version>, which will ensure
+only option currently recognized is C<-version>, which will ensure
 that the loaded class has at least the required version.
 
 See also L</Class Loading Options>.
@@ -978,7 +962,7 @@ cause most of the rest of the core L<IO> modules to falsely report
 having been loaded, due to the way the base L<IO> module works.
 
 You can pass a hash reference with options as second argument. The
-only option currently recognised is C<-version>, which will ensure
+only option currently recognized is C<-version>, which will ensure
 that the loaded class has at least the required version.
 
 See also L</Class Loading Options>.
@@ -996,36 +980,6 @@ This will return the metaclass of the given instance or class name.  If the
 class lacks a metaclass, no metaclass will be initialized, and C<undef> will be
 returned.
 
-=item B<Class::MOP::check_package_cache_flag($pkg)>
-
-B<NOTE: DO NOT USE THIS FUNCTION, IT IS FOR INTERNAL USE ONLY!>
-
-This will return an integer that is managed by L<Class::MOP::Class> to
-determine if a module's symbol table has been altered.
-
-In Perl 5.10 or greater, this flag is package specific. However in
-versions prior to 5.10, this will use the C<PL_sub_generation>
-variable which is not package specific.
-
-=item B<Class::MOP::load_first_existing_class(@class_names)>
-
-=item B<Class::MOP::load_first_existing_class($classA, \%optionsA?, $classB, ...)>
-
-B<NOTE: DO NOT USE THIS FUNCTION, IT IS FOR INTERNAL USE ONLY!>
-
-Given a list of class names, this function will attempt to load each
-one in turn.
-
-If it finds a class it can load, it will return that class' name.  If
-none of the classes can be loaded, it will throw an exception.
-
-Additionally, you can pass a hash reference with options after each
-class name. Currently, only C<-version> is recognised and will ensure
-that the loaded class has at least the required version. If the class
-version is not sufficient, an exception will be raised.
-
-See also L</Class Loading Options>.
-
 =back
 
 =head2 Metaclass cache functions
@@ -1171,7 +1125,7 @@ As I have said above, this module is a class-builder-builder, so it is
 not the same thing as modules like L<Class::Accessor> and
 L<Class::MethodMaker>. That being said there are very few modules on CPAN
 with similar goals to this module. The one I have found which is most
-like this module is L<Class::Meta>, although it's philosophy and the MOP it
+like this module is L<Class::Meta>, although its philosophy and the MOP it
 creates are very different from this modules.
 
 =head1 BUGS