summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Stellard <tstellar@gmail.com>2010-12-28 23:26:17 -0800
committerTom Stellard <tstellar@gmail.com>2010-12-28 23:26:17 -0800
commitff43be28b9a0303b367247bbfc15a3fa4b1d228b (patch)
treefebf920fda28e180d6aebeb215842c68b77bba6a
parent766e69ab2cba94cf4b3df211f137e89249100024 (diff)
Remove instruction::trim_dst_regs()
-rw-r--r--instruction.cpp10
-rw-r--r--instruction.h1
2 files changed, 0 insertions, 11 deletions
diff --git a/instruction.cpp b/instruction.cpp
index fd4df6c..f02e0b8 100644
--- a/instruction.cpp
+++ b/instruction.cpp
@@ -21,16 +21,6 @@ void instruction::add_src_reg(std::vector<register_address> src_reg)
m_src_regs.push_back(src_reg);
}
-void instruction::trim_dst_regs()
-{
- unsigned int i;
- for (i = 0; i < m_src_regs.size(); i++){
- while (m_dst.size() > m_src_regs[i].size()) {
- m_dst.pop_back();
- }
- }
-}
-
add_instruction::add_instruction(
std::vector<register_address> dst,
std::vector<register_address> src0,
diff --git a/instruction.h b/instruction.h
index 5a87bd0..1924e89 100644
--- a/instruction.h
+++ b/instruction.h
@@ -19,7 +19,6 @@ public:
unsigned int src_reg_count);
virtual void execute(emulator & emulator) = 0;
virtual void add_src_reg(std::vector<register_address> src_reg);
- virtual void trim_dst_regs();
protected:
const char * m_name;