Skip to content

Commit 0d525ff

Browse files
author
Kimmo Vaisanen
committed
Cellular: Remove deprecated CellularDevice::stop()
CellularDevice::shutdown() should be used instead.
1 parent 9243abb commit 0d525ff

File tree

3 files changed

+0
-25
lines changed

3 files changed

+0
-25
lines changed

UNITTESTS/features/cellular/framework/device/cellulardevice/cellulardevicetest.cpp

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -191,19 +191,6 @@ TEST_F(TestCellularDevice, test_get_context_list)
191191
delete dev;
192192
}
193193

194-
TEST_F(TestCellularDevice, test_stop)
195-
{
196-
FileHandle_stub fh1;
197-
CellularDevice *dev = new myCellularDevice(&fh1);
198-
EXPECT_TRUE(dev);
199-
200-
CellularStateMachine_stub::nsapi_error_value = NSAPI_ERROR_OK;
201-
ASSERT_EQ(dev->attach_to_network(), NSAPI_ERROR_OK);
202-
203-
dev->stop();
204-
delete dev;
205-
}
206-
207194
TEST_F(TestCellularDevice, test_cellular_callback)
208195
{
209196
FileHandle_stub fh1;

features/cellular/framework/API/CellularDevice.h

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -377,12 +377,6 @@ class CellularDevice {
377377

378378
public: //Common functions
379379

380-
/** Stop the current operation. Operations: set_device_ready, set_sim_ready, register_to_network, attach_to_network
381-
*
382-
*/
383-
MBED_DEPRECATED_SINCE("mbed-os-5.15", "Use CellularDevice::shutdown() instead.")
384-
void stop();
385-
386380
/** Get the current FileHandle item used when communicating with the modem.
387381
*
388382
* @return reference to FileHandle

features/cellular/framework/device/CellularDevice.cpp

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -64,12 +64,6 @@ CellularDevice::~CellularDevice()
6464
delete _state_machine;
6565
}
6666

67-
void CellularDevice::stop()
68-
{
69-
MBED_ASSERT(_state_machine);
70-
_state_machine->stop();
71-
}
72-
7367
FileHandle &CellularDevice::get_file_handle() const
7468
{
7569
return *_fh;

0 commit comments

Comments
 (0)