Skip to content

Commit 4dbffdf

Browse files
Remove deprecated CreateDefaultNetwork function (#1557)
It was unused already Relates-To: OCMAM-212 Signed-off-by: Andrey Kashcheev <ext-andrey.kashcheev@here.com>
1 parent bb6e941 commit 4dbffdf

2 files changed

Lines changed: 1 addition & 14 deletions

File tree

olp-cpp-sdk-core/include/olp/core/http/Network.h

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (C) 2019-2023 HERE Europe B.V.
2+
* Copyright (C) 2019-2024 HERE Europe B.V.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -147,13 +147,6 @@ class CORE_API Network {
147147
virtual Statistics GetStatistics(uint8_t bucket_id = 0);
148148
};
149149

150-
/// Creates a default `Network` implementation.
151-
OLP_SDK_DEPRECATED(
152-
"Will be removed by 05.2024, use "
153-
"CreateDefaultNetwork(NetworkInitializationSettings) instead")
154-
CORE_API std::shared_ptr<Network> CreateDefaultNetwork(
155-
size_t max_requests_count);
156-
157150
/// Creates a default `Network` implementation.
158151
CORE_API std::shared_ptr<Network> CreateDefaultNetwork(
159152
NetworkInitializationSettings settings);

olp-cpp-sdk-core/src/http/Network.cpp

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -65,12 +65,6 @@ Network::Statistics Network::GetStatistics(uint8_t /*bucket_id*/) {
6565
return Network::Statistics{};
6666
}
6767

68-
std::shared_ptr<Network> CreateDefaultNetwork(size_t max_requests_count) {
69-
NetworkInitializationSettings settings;
70-
settings.max_requests_count = max_requests_count;
71-
return CreateDefaultNetwork(std::move(settings));
72-
}
73-
7468
std::shared_ptr<Network> CreateDefaultNetwork(
7569
NetworkInitializationSettings settings) {
7670
auto network = CreateDefaultNetworkImpl(std::move(settings));

0 commit comments

Comments
 (0)