mirror of https://github.com/akuker/RASCSI.git
Remove unused code
This commit is contained in:
parent
aedf532b60
commit
ab31d9b16c
|
@ -31,7 +31,6 @@ class DataSample
|
|||
virtual bool GetREQ() const = 0;
|
||||
virtual bool GetACT() const = 0;
|
||||
virtual uint8_t GetDAT() const = 0;
|
||||
virtual bool GetDP() const = 0;
|
||||
|
||||
virtual uint32_t GetRawCapture() const = 0;
|
||||
|
||||
|
|
|
@ -74,10 +74,6 @@ class DataSample_Raspberry final : public DataSample
|
|||
{
|
||||
return GetSignal(PIN_ACT);
|
||||
}
|
||||
bool GetDP() const override
|
||||
{
|
||||
return GetSignal(PIN_DP);
|
||||
}
|
||||
uint8_t GetDAT() const override
|
||||
{
|
||||
uint8_t ret_val = 0;
|
||||
|
@ -106,4 +102,4 @@ class DataSample_Raspberry final : public DataSample
|
|||
|
||||
private:
|
||||
uint32_t data = 0;
|
||||
};
|
||||
};
|
||||
|
|
|
@ -646,17 +646,6 @@ void GPIOBUS_Raspberry::SetDAT(uint8_t dat)
|
|||
#endif // SIGNAL_CONTROL_MODE
|
||||
}
|
||||
|
||||
bool GPIOBUS_Raspberry::GetDP() const
|
||||
{
|
||||
return GetSignal(PIN_DP);
|
||||
}
|
||||
|
||||
//---------------------------------------------------------------------------
|
||||
//
|
||||
// Create work table
|
||||
//
|
||||
//---------------------------------------------------------------------------
|
||||
|
||||
//---------------------------------------------------------------------------
|
||||
//
|
||||
// Signal table
|
||||
|
|
|
@ -137,8 +137,6 @@ class GPIOBUS_Raspberry : public GPIOBUS
|
|||
// Set REQ signal
|
||||
void SetREQ(bool ast) override;
|
||||
|
||||
bool GetDP() const override;
|
||||
|
||||
// Get DAT signal
|
||||
uint8_t GetDAT() override;
|
||||
// Set DAT signal
|
||||
|
|
|
@ -372,11 +372,6 @@ void GPIOBUS_Virtual::SetREQ(bool ast)
|
|||
SetSignal(PIN_REQ, ast);
|
||||
}
|
||||
|
||||
bool GPIOBUS_Virtual::GetDP() const
|
||||
{
|
||||
return GetSignal(PIN_DP);
|
||||
}
|
||||
|
||||
//---------------------------------------------------------------------------
|
||||
//
|
||||
// Get data signals
|
||||
|
|
|
@ -97,8 +97,6 @@ class GPIOBUS_Virtual final : public GPIOBUS
|
|||
void SetREQ(bool ast) override;
|
||||
// Set REQ signal
|
||||
|
||||
bool GetDP() const override;
|
||||
|
||||
bool WaitREQ(bool ast) override
|
||||
{
|
||||
return WaitSignal(PIN_REQ, ast);
|
||||
|
|
|
@ -52,9 +52,6 @@ class PinControl
|
|||
// Set ENB signal
|
||||
virtual void SetENB(bool ast) = 0;
|
||||
|
||||
// Get parity signal
|
||||
virtual bool GetDP() const = 0;
|
||||
|
||||
// GPIO pin direction setting
|
||||
virtual void PinConfig(int pin, int mode) = 0;
|
||||
// GPIO pin pull up/down resistor setting
|
||||
|
@ -65,4 +62,4 @@ class PinControl
|
|||
|
||||
PinControl() = default;
|
||||
virtual ~PinControl() = default;
|
||||
};
|
||||
};
|
||||
|
|
|
@ -219,16 +219,3 @@ TEST(GpiobusRaspberry, GetREQ)
|
|||
bus.Acquire();
|
||||
EXPECT_EQ(false, bus.GetREQ());
|
||||
}
|
||||
|
||||
TEST(GpiobusRaspberry, GetDP)
|
||||
{
|
||||
SetableGpiobusRaspberry bus;
|
||||
|
||||
bus.TestSetGpios(0x00);
|
||||
bus.TestSetGpioPin(PIN_DP, true);
|
||||
bus.Acquire();
|
||||
EXPECT_EQ(true, bus.GetDP());
|
||||
bus.TestSetGpioPin(PIN_DP, false);
|
||||
bus.Acquire();
|
||||
EXPECT_EQ(false, bus.GetDP());
|
||||
}
|
||||
|
|
|
@ -53,7 +53,6 @@ public:
|
|||
MOCK_METHOD(void, SetENB, (bool), (override));
|
||||
MOCK_METHOD(uint8_t, GetDAT, (), (override));
|
||||
MOCK_METHOD(void, SetDAT, (uint8_t), (override));
|
||||
MOCK_METHOD(bool, GetDP, (), (const override));
|
||||
MOCK_METHOD(uint32_t, Acquire, (), (override));
|
||||
MOCK_METHOD(int, CommandHandShake, (vector<uint8_t>&), (override));
|
||||
MOCK_METHOD(int, ReceiveHandShake, (uint8_t *, int), (override));
|
||||
|
|
Loading…
Reference in New Issue