drj826 / SML

This is the Perl 5 implementation of the SML code library. SML is a minimalistic plain text descriptive markup language which is human readable, enables continuous integration of documentation, expresses and validates semantic relationships, is easy to edit, is easy to generate automatically, and publishes professional documentation from plain text manuscripts.
GNU General Public License v3.0
2 stars 2 forks source link

Simplify SML::Library Division Count Function #70

Closed drj826 closed 8 years ago

drj826 commented 8 years ago

The SML::Library division counting function is overly complex. For certain division names:

...The code cycles through all divisions to count the current number. This is inefficient and requires 4 unnecessary public methods. There is already a 'increment_division_count' method that will work fine.