SONARJAVA-439 Remove unused code

Previously was used to compute metric NOC.