Skip to content

Commit

Permalink
Remove unused imports of deprecated API (#1810)
Browse files Browse the repository at this point in the history
  • Loading branch information
ursachec authored Oct 7, 2022
1 parent a7df102 commit d7e8ca0
Show file tree
Hide file tree
Showing 6 changed files with 4 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package io.joern.ghidra2cpg.passes

import io.shiftleft.codepropertygraph.Cpg
import io.shiftleft.codepropertygraph.generated.{Languages, nodes}
import io.shiftleft.passes.{DiffGraph, IntervalKeyPool, ParallelCpgPass, SimpleCpgPass}
import io.shiftleft.passes.{SimpleCpgPass}
import overflowdb.BatchedUpdate

class MetaDataPass(filename: String, cpg: Cpg) extends SimpleCpgPass(cpg) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ package io.joern.ghidra2cpg.passes.x86

import io.shiftleft.codepropertygraph.Cpg
import io.shiftleft.codepropertygraph.generated.{EdgeTypes, PropertyNames}
import io.shiftleft.passes.{CpgPass, DiffGraph, SimpleCpgPass}
import io.shiftleft.passes.{SimpleCpgPass}
import io.shiftleft.semanticcpg.language._
import org.slf4j.{Logger, LoggerFactory}
import org.slf4j.{LoggerFactory}

class ReturnEdgesPass(cpg: Cpg) extends SimpleCpgPass(cpg) {
private val logger = LoggerFactory.getLogger(this.getClass)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package io.joern.pysrc2cpg

import io.shiftleft.codepropertygraph.Cpg
import io.shiftleft.passes.{ConcurrentWriterCpgPass, DiffGraph, IntervalKeyPool, ParallelCpgPass}
import io.shiftleft.passes.{ConcurrentWriterCpgPass}
import io.joern.pysrc2cpg.Py2Cpg.InputProvider
import io.joern.pythonparser.PyParser
import org.slf4j.LoggerFactory
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package io.joern.pysrc2cpg

import io.shiftleft.codepropertygraph.generated.{EvaluationStrategies, nodes}
import io.shiftleft.passes.DiffGraph
import overflowdb.BatchedUpdate.DiffGraphBuilder

class NodeBuilder(diffGraph: DiffGraphBuilder) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,9 @@ package io.joern.pysrc2cpg

import io.shiftleft.codepropertygraph.Cpg
import io.shiftleft.codepropertygraph.generated.Languages
import io.shiftleft.passes.{DiffGraph, IntervalKeyPool}
import overflowdb.BatchedUpdate
import overflowdb.BatchedUpdate.DiffGraphBuilder

import scala.collection.parallel

object Py2Cpg {
case class InputPair(content: String, absFileName: String, relFileName: String)
type InputProvider = () => InputPair
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import io.shiftleft.codepropertygraph.generated.nodes
import io.shiftleft.codepropertygraph.generated.nodes.NewNode
import io.joern.pysrc2cpg.PythonAstVisitor.{builtinPrefix, metaClassSuffix}
import io.shiftleft.codepropertygraph.generated.{ControlStructureTypes, DispatchTypes, ModifierTypes, Operators, nodes}
import io.shiftleft.passes.DiffGraph
import io.joern.pysrc2cpg.memop.{AstNodeToMemoryOperationMap, Del, Load, MemoryOperationCalculator, Store}
import io.joern.pythonparser.ast
import overflowdb.BatchedUpdate.DiffGraphBuilder
Expand Down

0 comments on commit d7e8ca0

Please sign in to comment.