Anonymous avatar Anonymous committed 6b7b2d6

Removed ->idx() from PathComp.

Comments (0)

Files changed (3)

     - Optimization/Refactoring: refactored _become_default() to remove
     the execessive use of $father and $father->idx(). Now ->idx() is
     no longer needed and will be removed next.
+    - Optimization/Refactoring: removed the ->idx() method as it
+    was no longer used and needed.
 
 0.1.7 - Thu Jan 15 16:09:49 IST 2009
     - Fixed the check-for-link and for directory semantics on Windows

lib/File/Find/Object.pm

 use File::Spec;
 
 sub new {
-    my ($class, $top, $from, $index) = @_;
+    my ($class, $top, $from) = @_;
 
     my $self = {};
     bless $self, $class;
     $self->_dir([ @{$top->_curr_comps()} ]);
     $self->_stat_ret($top->_top_stat_copy());
 
-    $self->idx($index);
-
     $self->_last_dir_scanned(undef);
 
     $from->_dir($self->_dir_copy());
     bless $self, $class;
 
     $top->_fill_actions($self);
-    $self->idx(0);
 
     return $self;
 }
         $self->_current(
             File::Find::Object::DeepPath->new(
                 $self,
-                $self->_current(),
-                scalar(@{$self->_dir_stack()})
+                $self->_current()
             )
         );
 

lib/File/Find/Object/PathComp.pm

                 _curr_file
                 _dir
                 _files
-                idx
                 _last_dir_scanned
                 _open_dir_ret
                 _stat_ret
 
 =head1 METHODS
 
-=head2 $self->idx()
-
-For internal use.
-
 =head1 SEE ALSO
 
 L<File::Find::Object>
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.