I’m really not sure, what the complete code is doing, so either the author had something in mind and didn’t implement it or some other code parts are using the implemented logic and you are missing them.
Could you post a link to the original implementation, so that we could have a look?