Skip to content

Ghidra is a software reverse engineering (SRE) framework

Removing some unused variables

caheckman601757fb0932
diff --git a/Ghidra/Features/Decompiler/src/decompile/cpp/block.cc b/Ghidra/Features/Decompiler/src/decompile/cpp/block.cc
index 86bbf61bc2..b40acf50e6 100644
--- a/Ghidra/Features/Decompiler/src/decompile/cpp/block.cc
+++ b/Ghidra/Features/Decompiler/src/decompile/cpp/block.cc
@@ -823,7 +823,6 @@ void BlockGraph::forceOutputNum(int4 i)
void BlockGraph::selfIdentify(void)
{
- vector<BlockEdge>::iterator tmp;
vector<FlowBlock *>::iterator iter;
FlowBlock *mybl,*otherbl;
diff --git a/Ghidra/Features/Decompiler/src/decompile/cpp/double.hh b/Ghidra/Features/Decompiler/src/decompile/cpp/double.hh
index c01f95de11..31a877e8c3 100644
--- a/Ghidra/Features/Decompiler/src/decompile/cpp/double.hh
+++ b/Ghidra/Features/Decompiler/src/decompile/cpp/double.hh
@@ -183,7 +183,7 @@ class LessThreeWay {
Varnode *vnhil1,*vnhil2,*vnhie1,*vnhie2;
Varnode *vnlo1,*vnlo2;
Varnode *hi,*lo,*hi2,*lo2;
- int4 hislot,loslot;
+ int4 hislot;
bool hiflip,equalflip,loflip;
bool lolessiszerocomp;
bool lolessequalform,hilessequalform,signcompare;
@@ -240,7 +240,7 @@ public:
class MultForm {
SplitVarnode in;
PcodeOp *add1,*add2;
- PcodeOp *subhi,*sublo;
+ PcodeOp *subhi;
PcodeOp *multlo,*multhi1,*multhi2;
Varnode *midtmp,*lo1zext,*lo2zext;
Varnode *hi1,*lo1,*hi2,*lo2;
diff --git a/Ghidra/Features/Decompiler/src/decompile/cpp/subflow.hh b/Ghidra/Features/Decompiler/src/decompile/cpp/subflow.hh
index 561a2245eb..c289890038 100644
--- a/Ghidra/Features/Decompiler/src/decompile/cpp/subflow.hh
+++ b/Ghidra/Features/Decompiler/src/decompile/cpp/subflow.hh
@@ -172,7 +172,6 @@ class LaneDivide : public TransformManager {
/// \brief Description of a large Varnode that needs to be traced (in the worklist)
class WorkNode {
friend class LaneDivide;
- Varnode *vn; ///< The underlying Varnode with lanes
TransformVar *lanes; ///< Lane placeholders for underyling Varnode
int4 numLanes; ///< Number of lanes in the particular Varnode
int4 skipLanes; ///< Number of lanes to skip in the global description