Skip to content

Commit 3d4def5

Browse files
committed
Removes debugging lines
1 parent e0d5b6d commit 3d4def5

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

src/metrics/loc.rs

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -810,19 +810,12 @@ impl Loc for CppCode {
810810
}
811811
}
812812

813-
impl fmt::Display for Java {
814-
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
815-
write!(f, "{:?}", self)
816-
}
817-
}
818-
819813
impl Loc for JavaCode {
820814
fn compute(node: &Node, stats: &mut Stats, is_func_space: bool, is_unit: bool) {
821815
use Java::*;
822816

823817
let (start, end) = init(node, stats, is_func_space, is_unit);
824818
let kind_id: Java = node.object().kind_id().into();
825-
println!("{}", kind_id);
826819
// LLOC in Java is counted for statements only
827820
// https://docs.oracle.com/javase/tutorial/java/nutsandbolts/expressions.html
828821
match kind_id {
@@ -835,7 +828,6 @@ impl Loc for JavaCode {
835828
| ReturnStatement | SwitchStatement | ThrowStatement | TryStatement
836829
| WhileStatement => {
837830
stats.logical_lines += 1;
838-
println!("+1");
839831
}
840832
LocalVariableDeclaration => {
841833
if count_specific_ancestors!(node, ForStatement, Block) == 0 {

0 commit comments

Comments
 (0)