From 547580dea8875ceda99bb4a95e387b4ea85a67f7 Mon Sep 17 00:00:00 2001 From: Michal Kordas Date: Sun, 19 Jul 2015 16:15:47 +0200 Subject: [PATCH] Remove dead code from SlistHandler in Indentation check. #1270 --- pom.xml | 1 - .../checkstyle/checks/indentation/SlistHandler.java | 9 --------- 2 files changed, 10 deletions(-) diff --git a/pom.xml b/pom.xml index 82de6bd7e..6f1c5298b 100644 --- a/pom.xml +++ b/pom.xml @@ -1165,7 +1165,6 @@ .*.checks.indentation.NewHandler8377 .*.checks.indentation.ObjectBlockHandler75100 .*.checks.indentation.PackageDefHandler5085 - .*.checks.indentation.SlistHandler10094 .*.checks.indentation.SynchronizedHandler100100 .*.checks.javadoc.AbstractJavadocCheck9093 diff --git a/src/main/java/com/puppycrawl/tools/checkstyle/checks/indentation/SlistHandler.java b/src/main/java/com/puppycrawl/tools/checkstyle/checks/indentation/SlistHandler.java index e96aef4e9..605e9b539 100644 --- a/src/main/java/com/puppycrawl/tools/checkstyle/checks/indentation/SlistHandler.java +++ b/src/main/java/com/puppycrawl/tools/checkstyle/checks/indentation/SlistHandler.java @@ -62,15 +62,6 @@ public class SlistHandler extends BlockParentHandler { return super.suggestedChildLevel(child); } - @Override - protected DetailAST getNonlistChild() { - // blocks always have either block children or they are transparent - // and aren't checking children at all. In the later case, the - // superclass will want to check single children, so when it - // does tell it we have none. - return null; - } - @Override protected DetailAST getListChild() { return getMainAst();