[Rt-commit] rt branch, 4.2/remove-initconfig, created. rt-4.1.5-6-g5ddba12

Alex Vandiver alexmv at bestpractical.com
Thu Dec 6 16:31:41 EST 2012


The branch, 4.2/remove-initconfig has been created
        at  5ddba1207b0a9bbb44f5b6a57504df6193ac3740 (commit)

- Log -----------------------------------------------------------------
commit 5ddba1207b0a9bbb44f5b6a57504df6193ac3740
Author: Alex Vandiver <alexmv at bestpractical.com>
Date:   Thu Dec 6 16:30:26 2012 -0500

    Remove no-op InitConfig
    
    InitConfig was introduced in bfb7641, with the intent of having the META
    information contained along-side the configuration files.  However,
    functionality was never completed.
    
    Remove the stub.

diff --git a/lib/RT/Config.pm b/lib/RT/Config.pm
index 723d753..6b6ff5e 100644
--- a/lib/RT/Config.pm
+++ b/lib/RT/Config.pm
@@ -824,19 +824,6 @@ sub _Init {
     return;
 }
 
-=head2 InitConfig
-
-Do nothin right now.
-
-=cut
-
-sub InitConfig {
-    my $self = shift;
-    my %args = ( File => '', @_ );
-    $args{'File'} =~ s/(?<=Config)(?=\.pm$)/Meta/;
-    return 1;
-}
-
 =head2 LoadConfigs
 
 Load all configs. First of all load RT's config then load
@@ -848,11 +835,9 @@ Takes no arguments.
 sub LoadConfigs {
     my $self    = shift;
 
-    $self->InitConfig( File => 'RT_Config.pm' );
     $self->LoadConfig( File => 'RT_Config.pm' );
 
     my @configs = $self->Configs;
-    $self->InitConfig( File => $_ ) foreach @configs;
     $self->LoadConfig( File => $_ ) foreach @configs;
     return;
 }

-----------------------------------------------------------------------


More information about the Rt-commit mailing list