mirror of
https://github.com/github/codeql.git
synced 2025-12-18 01:33:15 +01:00
QL code and tests for C#/C++/JavaScript.
This commit is contained in:
12
cpp/ql/src/Critical/DeadCodeFunction.cpp
Normal file
12
cpp/ql/src/Critical/DeadCodeFunction.cpp
Normal file
@@ -0,0 +1,12 @@
|
||||
class C {
|
||||
public:
|
||||
void g() {
|
||||
...
|
||||
//f() was previously used but is now commented, orphaning f()
|
||||
//f();
|
||||
...
|
||||
}
|
||||
private:
|
||||
void f() { //is now unused, and can be removed
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user