Changeset 1236 for trunk


Ignore:
Timestamp:
Oct 23, 2010, 11:30:17 PM (11 years ago)
Author:
Peter Johansson
Message:

Remove parse from Node interface as we now use visitor pattern and only need to rase with File and 'collect_stats()' with Directory. refs 476

Location:
trunk/lib
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/Directory.cc

    r1234 r1236  
    151151  }
    152152
    153   const StatsCollection& Directory::parse(bool verbose, bool ignore)
    154   {
    155     stats_.reset();
    156     assert(0 && "we are not using this function, are we?");
    157     /*
    158     for (NodeIterator i=daughters_.begin(); i!=daughters_.end(); ++i)
    159       if (!(*i)->ignore())
    160         stats_ += (*i)->parse(verbose, ignore);
    161     */
    162     return stats_;
    163   }
    164 
    165153
    166154  void Directory::print_core(const bool verbose) const
  • trunk/lib/Directory.h

    r1234 r1236  
    9494    std::string output_path(void) const;
    9595
    96     const StatsCollection& parse(bool verbose, bool ignore);
    97 
    9896    using Node::print_copyright;
    9997    /**
  • trunk/lib/Node.h

    r1234 r1236  
    156156     */
    157157    virtual std::string output_path(void) const=0;
    158 
    159     ///
    160     /// @brief parsing file using svn blame.
    161     ///
    162     virtual const StatsCollection& parse(bool verbose,
    163                                          bool ignore_cache)=0;
    164158
    165159    ///
Note: See TracChangeset for help on using the changeset viewer.