Skip to content

Commit 2113b0d

Browse files
committed
delete unused predicates in query specific file
1 parent 69c40b0 commit 2113b0d

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

cpp/ql/src/Best Practices/Magic Constants/MagicConstants.qll

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -72,18 +72,6 @@ predicate floatTrivial(Literal lit) {
7272

7373
predicate charLiteral(Literal lit) { lit instanceof CharLiteral }
7474

75-
Type literalType(Literal literal) { result = literal.getType() }
76-
77-
predicate stringType(DerivedType t) {
78-
t.getBaseType() instanceof CharType
79-
or
80-
exists(SpecifiedType constCharType |
81-
t.getBaseType() = constCharType and
82-
constCharType.isConst() and
83-
constCharType.getBaseType() instanceof CharType
84-
)
85-
}
86-
8775
predicate numberType(Type t) { t instanceof FloatingPointType or t instanceof IntegralType }
8876

8977
predicate stringLiteral(Literal literal) { literal instanceof StringLiteral }

0 commit comments

Comments
 (0)