Merge pull request #12249 from kivaisan/remove_deprecated_cellulardevice_stop

Cellular: Remove deprecated CellularDevice::stop()
pull/12245/head
Martin Kojtal 2020-01-15 13:06:27 +01:00 committed by GitHub
commit 1b11d2cb02
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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;