Cellular: Remove deprecated CellularDevice::stop()

CellularDevice::shutdown() should be used instead.
pull/12249/head
Kimmo Vaisanen 2020-01-14 10:47:05 +02:00
parent 9243abb6be
commit 0d525fff29
3 changed files with 0 additions and 25 deletions

View File

@ -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;

View File

@ -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

View File

@ -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;