Skip to content

Commit

Permalink
UPDATED: BrightnessOverrideRule remove unused method
Browse files Browse the repository at this point in the history
  • Loading branch information
Jberque committed Mar 5, 2024
1 parent 4276a8e commit 07f17d1
Showing 1 changed file with 0 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@ public void visitNode(Tree tree) {
checkBrightnessAssignmentExpressionValue(initialTreeToFlag,
(Number)identifierTreeConstantMset.get());
}

break;
case FLOAT_LITERAL:
LiteralTree floatLiteralTree = (LiteralTree) assignmentTree.expression();
Expand Down Expand Up @@ -89,27 +88,11 @@ public void visitNode(Tree tree) {
break;
default:
// For other tree types we cannot do anything, juste ignore them
System.out.println(assignmentTreeKind);
break;
}
}
}

/**
* Check if parameter's Expression is also a member select,
* reassign parent until expression is not a Member select
*
* @param mset the Member Select Expression to check
* @return the last expression
*/
private MemberSelectExpressionTree findMemberSelect(MemberSelectExpressionTree mset) {
if (mset.expression().kind() == Tree.Kind.MEMBER_SELECT) {
mset = (MemberSelectExpressionTree) mset.expression();
mset = findMemberSelect(mset);
}
return mset;
}

/**
* Check that the assignment is an assignment of android.view.WindowManager$LayoutParams screenBrightness element
*
Expand Down

0 comments on commit 07f17d1

Please sign in to comment.