Skip to content

Commit 0a35fbc

Browse files
committed
Removes debugging lines
1 parent 1217ad5 commit 0a35fbc

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
@@ -500,19 +500,12 @@ impl Loc for CppCode {
500500
}
501501
}
502502

503-
impl fmt::Display for Java {
504-
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
505-
write!(f, "{:?}", self)
506-
}
507-
}
508-
509503
impl Loc for JavaCode {
510504
fn compute(node: &Node, stats: &mut Stats, is_func_space: bool, is_unit: bool) {
511505
use Java::*;
512506

513507
let (start, end) = init(node, stats, is_func_space, is_unit);
514508
let kind_id: Java = node.object().kind_id().into();
515-
println!("{}", kind_id);
516509
// LLOC in Java is counted for statements only
517510
// https://docs.oracle.com/javase/tutorial/java/nutsandbolts/expressions.html
518511
match kind_id {
@@ -525,7 +518,6 @@ impl Loc for JavaCode {
525518
| ReturnStatement | SwitchStatement | ThrowStatement | TryStatement
526519
| WhileStatement => {
527520
stats.logical_lines += 1;
528-
println!("+1");
529521
}
530522
LocalVariableDeclaration => {
531523
if count_specific_ancestors!(node, ForStatement, Block) == 0 {

0 commit comments

Comments
 (0)