mirror of https://github.com/ARMmbed/mbed-os.git
Merge pull request #12249 from kivaisan/remove_deprecated_cellulardevice_stop
Cellular: Remove deprecated CellularDevice::stop()pull/12245/head
commit
1b11d2cb02
|
@ -191,19 +191,6 @@ TEST_F(TestCellularDevice, test_get_context_list)
|
|||
delete dev;
|
||||
}
|
||||
|
||||
TEST_F(TestCellularDevice, test_stop)
|
||||
{
|
||||
FileHandle_stub fh1;
|
||||
CellularDevice *dev = new myCellularDevice(&fh1);
|
||||
EXPECT_TRUE(dev);
|
||||
|
||||
CellularStateMachine_stub::nsapi_error_value = NSAPI_ERROR_OK;
|
||||
ASSERT_EQ(dev->attach_to_network(), NSAPI_ERROR_OK);
|
||||
|
||||
dev->stop();
|
||||
delete dev;
|
||||
}
|
||||
|
||||
TEST_F(TestCellularDevice, test_cellular_callback)
|
||||
{
|
||||
FileHandle_stub fh1;
|
||||
|
|
|
@ -377,12 +377,6 @@ public: //Pure virtual functions
|
|||
|
||||
public: //Common functions
|
||||
|
||||
/** Stop the current operation. Operations: set_device_ready, set_sim_ready, register_to_network, attach_to_network
|
||||
*
|
||||
*/
|
||||
MBED_DEPRECATED_SINCE("mbed-os-5.15", "Use CellularDevice::shutdown() instead.")
|
||||
void stop();
|
||||
|
||||
/** Get the current FileHandle item used when communicating with the modem.
|
||||
*
|
||||
* @return reference to FileHandle
|
||||
|
|
|
@ -64,12 +64,6 @@ CellularDevice::~CellularDevice()
|
|||
delete _state_machine;
|
||||
}
|
||||
|
||||
void CellularDevice::stop()
|
||||
{
|
||||
MBED_ASSERT(_state_machine);
|
||||
_state_machine->stop();
|
||||
}
|
||||
|
||||
FileHandle &CellularDevice::get_file_handle() const
|
||||
{
|
||||
return *_fh;
|
||||
|
|
Loading…
Reference in New Issue