diff options
author | Lutz Bichler <Lutz.Bichler@bmw.de> | 2014-08-21 12:45:18 +0200 |
---|---|---|
committer | Lutz Bichler <Lutz.Bichler@bmw.de> | 2014-08-21 12:45:18 +0200 |
commit | 0fc473ebd8c17e77f2a12a84d5c1a6567483b6a9 (patch) | |
tree | 1fe5a4159524708b1ca6bcbbd21904d2b30cb444 | |
parent | 44d4e23a7d072af09f38fab44af14f5271956574 (diff) | |
download | vSomeIP-0fc473ebd8c17e77f2a12a84d5c1a6567483b6a9.tar.gz |
Removed unused methods (open_filter, close_filter). These may be
reintroduced after redesigning the endpoint classes is finished.
-rw-r--r-- | implementation/endpoints/include/endpoint.hpp | 3 | ||||
-rw-r--r-- | implementation/endpoints/include/endpoint_impl.hpp | 3 | ||||
-rw-r--r-- | implementation/endpoints/src/endpoint_impl.cpp | 20 |
3 files changed, 0 insertions, 26 deletions
diff --git a/implementation/endpoints/include/endpoint.hpp b/implementation/endpoints/include/endpoint.hpp index 3a636be..adc765a 100644 --- a/implementation/endpoints/include/endpoint.hpp +++ b/implementation/endpoints/include/endpoint.hpp @@ -31,9 +31,6 @@ public: virtual void enable_magic_cookies() = 0;
virtual void receive() = 0;
- virtual void open_filter(service_t _service_id) = 0;
- virtual void close_filter(service_t _service_id) = 0;
-
virtual void join(const std::string &_address) = 0;
virtual void leave(const std::string &_address) = 0;
diff --git a/implementation/endpoints/include/endpoint_impl.hpp b/implementation/endpoints/include/endpoint_impl.hpp index 1be3474..8e4bd9f 100644 --- a/implementation/endpoints/include/endpoint_impl.hpp +++ b/implementation/endpoints/include/endpoint_impl.hpp @@ -30,9 +30,6 @@ public: void enable_magic_cookies();
- void open_filter(service_t _service);
- void close_filter(service_t _service);
-
// Dummy implementations as we only need these for UDP (servers)
// TODO: redesign
void join(const std::string &);
diff --git a/implementation/endpoints/src/endpoint_impl.cpp b/implementation/endpoints/src/endpoint_impl.cpp index e36ac95..f22771a 100644 --- a/implementation/endpoints/src/endpoint_impl.cpp +++ b/implementation/endpoints/src/endpoint_impl.cpp @@ -27,26 +27,6 @@ endpoint_impl< MaxBufferSize >::~endpoint_impl() { }
template < int MaxBufferSize >
-void endpoint_impl< MaxBufferSize >::open_filter(service_t _service) {
- auto find_service = opened_.find(_service);
- if (find_service != opened_.end()) {
- find_service->second++;
- } else {
- opened_[_service] = 1;
- }
-}
-
-template < int MaxBufferSize >
-void endpoint_impl< MaxBufferSize >::close_filter(service_t _service) {
- auto find_service = opened_.find(_service);
- if (find_service != opened_.end()) {
- find_service->second--;
- if (0 == find_service->second)
- opened_.erase(_service);
- }
-}
-
-template < int MaxBufferSize >
void endpoint_impl< MaxBufferSize >::enable_magic_cookies() {
has_enabled_magic_cookies_ = is_supporting_magic_cookies_;
}
|