Skip to content

Commit

Permalink
Removes debugging lines
Browse files Browse the repository at this point in the history
  • Loading branch information
dburriss committed Mar 4, 2022
1 parent bb8cc7b commit 1f169ca
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions src/metrics/loc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -500,19 +500,12 @@ impl Loc for CppCode {
}
}

impl fmt::Display for Java {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{:?}", self)
}
}

impl Loc for JavaCode {
fn compute(node: &Node, stats: &mut Stats, is_func_space: bool, is_unit: bool) {
use Java::*;

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

0 comments on commit 1f169ca

Please sign in to comment.