Skip to content

Commit e1c7d36

Browse files
authored
Merge pull request #8796 from erik-krogh/redundantImport
Remove redundant imports
2 parents 9d77446 + 7dba2b5 commit e1c7d36

File tree

114 files changed

+87
-120
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

114 files changed

+87
-120
lines changed

cpp/ql/lib/semmle/code/cpp/Field.qll

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55
import semmle.code.cpp.Variable
66
import semmle.code.cpp.Enum
7-
import semmle.code.cpp.exprs.Access
87

98
/**
109
* A C structure member or C++ non-static member variable. For example the

cpp/ql/lib/semmle/code/cpp/ir/implementation/raw/internal/TranslatedExpr.qll

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ private import TranslatedDeclarationEntry
1111
private import TranslatedElement
1212
private import TranslatedFunction
1313
private import TranslatedInitialization
14-
private import TranslatedFunction
1514
private import TranslatedStmt
1615
private import TranslatedGlobalVar
1716
import TranslatedCall

cpp/ql/lib/semmle/code/cpp/models/implementations/Strtok.qll

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55

66
import semmle.code.cpp.Function
77
import semmle.code.cpp.models.interfaces.ArrayFunction
8-
import semmle.code.cpp.models.interfaces.ArrayFunction
98
import semmle.code.cpp.models.interfaces.Alias
109
import semmle.code.cpp.models.interfaces.SideEffect
1110
import semmle.code.cpp.models.interfaces.Taint

cpp/ql/lib/semmle/code/cpp/rangeanalysis/SimpleRangeAnalysis.qll

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1802,5 +1802,3 @@ module SimpleRangeAnalysisInternal {
18021802
defMightOverflowNegatively(def, v) and result = varMaxVal(v)
18031803
}
18041804
}
1805-
1806-
private import SimpleRangeAnalysisInternal

cpp/ql/lib/semmle/code/cpp/security/BufferWrite.qll

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
*/
77

88
import cpp
9-
import semmle.code.cpp.commons.Alloc
109
import semmle.code.cpp.commons.Buffer
1110
import semmle.code.cpp.commons.Scanf
1211
import semmle.code.cpp.models.implementations.Strcat

cpp/ql/src/Likely Bugs/Leap Year/Adding365DaysPerYear.ql

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313

1414
import cpp
1515
import LeapYear
16-
import semmle.code.cpp.dataflow.DataFlow
1716

1817
from Expr source, Expr sink, PossibleYearArithmeticOperationCheckConfiguration config
1918
where config.hasFlow(DataFlow::exprNode(source), DataFlow::exprNode(sink))

cpp/ql/src/Likely Bugs/Memory Management/NtohlArrayNoBound.ql

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010

1111
import cpp
1212
import NtohlArrayNoBound
13-
import semmle.code.cpp.dataflow.DataFlow
1413

1514
from NetworkToBufferSizeConfiguration bufConfig, DataFlow::Node source, DataFlow::Node sink
1615
where bufConfig.hasFlow(source, sink)

cpp/ql/src/Security/CWE/CWE-120/OverrunWrite.ql

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
*/
1616

1717
import semmle.code.cpp.security.BufferWrite
18-
import semmle.code.cpp.commons.Alloc
1918

2019
/*
2120
* See CWE-120/UnboundedWrite.ql for a summary of CWE-120 alert cases.

cpp/ql/src/Security/CWE/CWE-120/VeryLikelyOverrunWrite.ql

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
*/
1616

1717
import semmle.code.cpp.security.BufferWrite
18-
import semmle.code.cpp.commons.Alloc
1918

2019
/*
2120
* See CWE-120/UnboundedWrite.ql for a summary of CWE-120 alert cases.

cpp/ql/src/experimental/Security/CWE/CWE-266/IncorrectPrivilegeAssignment.ql

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
*/
1717

1818
import cpp
19-
import semmle.code.cpp.exprs.BitwiseOperation
2019
import semmle.code.cpp.valuenumbering.GlobalValueNumbering
2120

2221
/**

0 commit comments

Comments
 (0)