From 0d525fff29d8d67c9c202a36a9b14349421a6f3d Mon Sep 17 00:00:00 2001 From: Kimmo Vaisanen Date: Tue, 14 Jan 2020 10:47:05 +0200 Subject: [PATCH] Cellular: Remove deprecated CellularDevice::stop() CellularDevice::shutdown() should be used instead. --- .../device/cellulardevice/cellulardevicetest.cpp | 13 ------------- features/cellular/framework/API/CellularDevice.h | 6 ------ .../cellular/framework/device/CellularDevice.cpp | 6 ------ 3 files changed, 25 deletions(-) diff --git a/UNITTESTS/features/cellular/framework/device/cellulardevice/cellulardevicetest.cpp b/UNITTESTS/features/cellular/framework/device/cellulardevice/cellulardevicetest.cpp index 4fc3e0f6c8..20130b0bce 100644 --- a/UNITTESTS/features/cellular/framework/device/cellulardevice/cellulardevicetest.cpp +++ b/UNITTESTS/features/cellular/framework/device/cellulardevice/cellulardevicetest.cpp @@ -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; diff --git a/features/cellular/framework/API/CellularDevice.h b/features/cellular/framework/API/CellularDevice.h index b6f4e89d8f..a67cc42ac7 100644 --- a/features/cellular/framework/API/CellularDevice.h +++ b/features/cellular/framework/API/CellularDevice.h @@ -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 diff --git a/features/cellular/framework/device/CellularDevice.cpp b/features/cellular/framework/device/CellularDevice.cpp index 602a3e38a1..43c356b507 100644 --- a/features/cellular/framework/device/CellularDevice.cpp +++ b/features/cellular/framework/device/CellularDevice.cpp @@ -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;