From a96489b23dbf93c9ee11ad592ab5ae0b341192e6 Mon Sep 17 00:00:00 2001 From: Erik Krogh Kristensen Date: Thu, 21 Apr 2022 13:59:13 +0200 Subject: [PATCH] delete duplicate imports --- .../code/cpp/ir/implementation/raw/internal/TranslatedExpr.qll | 1 - cpp/ql/lib/semmle/code/cpp/models/implementations/Strtok.qll | 1 - csharp/ql/src/Likely Bugs/ICryptoTransform.qll | 1 - java/ql/lib/semmle/code/java/dataflow/ExternalFlow.qll | 1 - python/ql/lib/semmle/python/web/pyramid/Response.qll | 1 - .../ql/src/Expressions/Formatting/UnusedArgumentIn3101Format.ql | 1 - python/ql/src/Lexical/FCommentedOutCode.ql | 1 - python/ql/test/library-tests/PointsTo/global/Global.ql | 1 - ruby/ql/lib/codeql/ruby/ast/internal/Synthesis.qll | 1 - ruby/ql/lib/codeql/ruby/frameworks/ActionController.qll | 1 - 10 files changed, 10 deletions(-) diff --git a/cpp/ql/lib/semmle/code/cpp/ir/implementation/raw/internal/TranslatedExpr.qll b/cpp/ql/lib/semmle/code/cpp/ir/implementation/raw/internal/TranslatedExpr.qll index 4449b03a84a..c81b7c5943a 100644 --- a/cpp/ql/lib/semmle/code/cpp/ir/implementation/raw/internal/TranslatedExpr.qll +++ b/cpp/ql/lib/semmle/code/cpp/ir/implementation/raw/internal/TranslatedExpr.qll @@ -11,7 +11,6 @@ private import TranslatedDeclarationEntry private import TranslatedElement private import TranslatedFunction private import TranslatedInitialization -private import TranslatedFunction private import TranslatedStmt import TranslatedCall diff --git a/cpp/ql/lib/semmle/code/cpp/models/implementations/Strtok.qll b/cpp/ql/lib/semmle/code/cpp/models/implementations/Strtok.qll index f2cb6498819..f2759e4a737 100644 --- a/cpp/ql/lib/semmle/code/cpp/models/implementations/Strtok.qll +++ b/cpp/ql/lib/semmle/code/cpp/models/implementations/Strtok.qll @@ -5,7 +5,6 @@ import semmle.code.cpp.Function import semmle.code.cpp.models.interfaces.ArrayFunction -import semmle.code.cpp.models.interfaces.ArrayFunction import semmle.code.cpp.models.interfaces.Alias import semmle.code.cpp.models.interfaces.SideEffect import semmle.code.cpp.models.interfaces.Taint diff --git a/csharp/ql/src/Likely Bugs/ICryptoTransform.qll b/csharp/ql/src/Likely Bugs/ICryptoTransform.qll index 5570e51bdfc..c3997f25c9f 100644 --- a/csharp/ql/src/Likely Bugs/ICryptoTransform.qll +++ b/csharp/ql/src/Likely Bugs/ICryptoTransform.qll @@ -1,6 +1,5 @@ import csharp import semmle.code.csharp.dataflow.DataFlow -import csharp class ImplementsICryptoTransform extends Class { ImplementsICryptoTransform() { diff --git a/java/ql/lib/semmle/code/java/dataflow/ExternalFlow.qll b/java/ql/lib/semmle/code/java/dataflow/ExternalFlow.qll index 3ea87607483..a53e0b88501 100644 --- a/java/ql/lib/semmle/code/java/dataflow/ExternalFlow.qll +++ b/java/ql/lib/semmle/code/java/dataflow/ExternalFlow.qll @@ -137,7 +137,6 @@ private module Frameworks { private import semmle.code.java.frameworks.MyBatis private import semmle.code.java.frameworks.Hibernate private import semmle.code.java.frameworks.jOOQ - private import semmle.code.java.frameworks.spring.SpringHttp } private predicate sourceModelCsv(string row) { diff --git a/python/ql/lib/semmle/python/web/pyramid/Response.qll b/python/ql/lib/semmle/python/web/pyramid/Response.qll index 5c095a69796..0512e7e7f4d 100644 --- a/python/ql/lib/semmle/python/web/pyramid/Response.qll +++ b/python/ql/lib/semmle/python/web/pyramid/Response.qll @@ -3,7 +3,6 @@ import semmle.python.dataflow.TaintTracking import semmle.python.security.strings.Basic import semmle.python.web.Http private import semmle.python.web.pyramid.View -private import semmle.python.web.Http /** * A pyramid response, which is vulnerable to any sort of diff --git a/python/ql/src/Expressions/Formatting/UnusedArgumentIn3101Format.ql b/python/ql/src/Expressions/Formatting/UnusedArgumentIn3101Format.ql index 43c0348a8bd..d8e1f0af1b4 100644 --- a/python/ql/src/Expressions/Formatting/UnusedArgumentIn3101Format.ql +++ b/python/ql/src/Expressions/Formatting/UnusedArgumentIn3101Format.ql @@ -10,7 +10,6 @@ * @id py/str-format/surplus-argument */ -import python import python import AdvancedFormatting diff --git a/python/ql/src/Lexical/FCommentedOutCode.ql b/python/ql/src/Lexical/FCommentedOutCode.ql index a0ab7f01c99..8d2382ea943 100644 --- a/python/ql/src/Lexical/FCommentedOutCode.ql +++ b/python/ql/src/Lexical/FCommentedOutCode.ql @@ -10,7 +10,6 @@ import python import Lexical.CommentedOutCode -import python from File f, int n where n = count(CommentedOutCodeLine c | not c.maybeExampleCode() and c.getLocation().getFile() = f) diff --git a/python/ql/test/library-tests/PointsTo/global/Global.ql b/python/ql/test/library-tests/PointsTo/global/Global.ql index d3ab7bc0269..f9f52b12641 100644 --- a/python/ql/test/library-tests/PointsTo/global/Global.ql +++ b/python/ql/test/library-tests/PointsTo/global/Global.ql @@ -1,5 +1,4 @@ import python -import python import semmle.python.pointsto.PointsTo import semmle.python.pointsto.PointsToContext import semmle.python.objects.ObjectInternal diff --git a/ruby/ql/lib/codeql/ruby/ast/internal/Synthesis.qll b/ruby/ql/lib/codeql/ruby/ast/internal/Synthesis.qll index f3e3c479fb0..b6367bf19e9 100644 --- a/ruby/ql/lib/codeql/ruby/ast/internal/Synthesis.qll +++ b/ruby/ql/lib/codeql/ruby/ast/internal/Synthesis.qll @@ -7,7 +7,6 @@ private import codeql.ruby.ast.internal.Expr private import codeql.ruby.ast.internal.Variable private import codeql.ruby.ast.internal.Pattern private import codeql.ruby.ast.internal.Scope -private import codeql.ruby.ast.internal.TreeSitter private import codeql.ruby.AST /** A synthesized AST node kind. */ diff --git a/ruby/ql/lib/codeql/ruby/frameworks/ActionController.qll b/ruby/ql/lib/codeql/ruby/frameworks/ActionController.qll index e7f51689b7f..f034e229e32 100644 --- a/ruby/ql/lib/codeql/ruby/frameworks/ActionController.qll +++ b/ruby/ql/lib/codeql/ruby/frameworks/ActionController.qll @@ -11,7 +11,6 @@ private import codeql.ruby.ast.internal.Module private import codeql.ruby.ApiGraphs private import ActionView private import codeql.ruby.frameworks.ActionDispatch -private import codeql.ruby.Concepts /** * A `ClassDeclaration` for a class that extends `ActionController::Base`.