PROTON-1164: [C++ binding] Remove access to container from proton::event
- This is not needed as container related events are passed a container directly


Project: http://git-wip-us.apache.org/repos/asf/qpid-proton/repo
Commit: http://git-wip-us.apache.org/repos/asf/qpid-proton/commit/70fe0758
Tree: http://git-wip-us.apache.org/repos/asf/qpid-proton/tree/70fe0758
Diff: http://git-wip-us.apache.org/repos/asf/qpid-proton/diff/70fe0758

Branch: refs/heads/master
Commit: 70fe0758053cb69a8fd533546baeaa4403c4b373
Parents: d4ec34f
Author: Andrew Stitcher <[email protected]>
Authored: Wed Mar 23 23:47:44 2016 -0400
Committer: Andrew Stitcher <[email protected]>
Committed: Thu Mar 24 10:12:49 2016 -0400

----------------------------------------------------------------------
 proton-c/bindings/cpp/include/proton/event.hpp | 6 ------
 proton-c/bindings/cpp/src/messaging_event.cpp  | 6 ------
 proton-c/bindings/cpp/src/messaging_event.hpp  | 1 -
 3 files changed, 13 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/qpid-proton/blob/70fe0758/proton-c/bindings/cpp/include/proton/event.hpp
----------------------------------------------------------------------
diff --git a/proton-c/bindings/cpp/include/proton/event.hpp 
b/proton-c/bindings/cpp/include/proton/event.hpp
index fc29f11..25bf862 100644
--- a/proton-c/bindings/cpp/include/proton/event.hpp
+++ b/proton-c/bindings/cpp/include/proton/event.hpp
@@ -48,12 +48,6 @@ class event {
     virtual PN_CPP_EXTERN std::string name() const = 0;
     /// @endcond
 
-    /// Get the container.
-    ///
-    /// @throw proton::error if this event was not generated by a
-    /// container
-    virtual PN_CPP_EXTERN class container& container() const = 0;
-
     /// Get transport.
     ///
     /// @throw proton::error if this event was not generated by a

http://git-wip-us.apache.org/repos/asf/qpid-proton/blob/70fe0758/proton-c/bindings/cpp/src/messaging_event.cpp
----------------------------------------------------------------------
diff --git a/proton-c/bindings/cpp/src/messaging_event.cpp 
b/proton-c/bindings/cpp/src/messaging_event.cpp
index bf491c9..346a664 100644
--- a/proton-c/bindings/cpp/src/messaging_event.cpp
+++ b/proton-c/bindings/cpp/src/messaging_event.cpp
@@ -50,12 +50,6 @@ messaging_event::~messaging_event() {}
 
 messaging_event::event_type messaging_event::type() const { return type_; }
 
-container& messaging_event::container() const {
-    if (parent_event_)
-        return *parent_event_->container();
-    throw error(MSG("No container context for event"));
-}
-
 transport messaging_event::transport() const {
     if (parent_event_)
         return parent_event_->transport();

http://git-wip-us.apache.org/repos/asf/qpid-proton/blob/70fe0758/proton-c/bindings/cpp/src/messaging_event.hpp
----------------------------------------------------------------------
diff --git a/proton-c/bindings/cpp/src/messaging_event.hpp 
b/proton-c/bindings/cpp/src/messaging_event.hpp
index 45f1594..71e8a11 100644
--- a/proton-c/bindings/cpp/src/messaging_event.hpp
+++ b/proton-c/bindings/cpp/src/messaging_event.hpp
@@ -71,7 +71,6 @@ class messaging_event : public event
     messaging_event(event_type t, pn_event_t*);
     ~messaging_event();
 
-    class container& container() const;
     class transport transport() const;
     class connection connection() const;
     class session session() const;


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to