qpid-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From acon...@apache.org
Subject qpid-proton git commit: PROTON-1184: Remove unused file left in error.
Date Mon, 16 May 2016 18:24:08 GMT
Repository: qpid-proton
Updated Branches:
  refs/heads/master 1b8450d6a -> 552f43911


PROTON-1184: Remove unused file left in error.


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

Branch: refs/heads/master
Commit: 552f4391196a228cdbf70d526823db44e2a9aaaa
Parents: 1b8450d
Author: Alan Conway <aconway@redhat.com>
Authored: Mon May 16 14:22:12 2016 -0400
Committer: Alan Conway <aconway@redhat.com>
Committed: Mon May 16 14:22:12 2016 -0400

----------------------------------------------------------------------
 .../bindings/cpp/include/proton/ret_ptr.hpp     | 51 --------------------
 1 file changed, 51 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/qpid-proton/blob/552f4391/proton-c/bindings/cpp/include/proton/ret_ptr.hpp
----------------------------------------------------------------------
diff --git a/proton-c/bindings/cpp/include/proton/ret_ptr.hpp b/proton-c/bindings/cpp/include/proton/ret_ptr.hpp
deleted file mode 100644
index 95d63a0..0000000
--- a/proton-c/bindings/cpp/include/proton/ret_ptr.hpp
+++ /dev/null
@@ -1,51 +0,0 @@
-#ifndef PROTON_RET_PTR_HPP
-#define PROTON_RET_PTR_HPP
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License.  You may obtain a copy of the License at
- *
- *   http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied.  See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-#include "proton/config.hpp"
-#include <memory>
-
-namespace proton {
-
-/// A simple unique ownership pointer, used only as a return value from
-/// functions that transfer ownership to the caller.
-///
-/// If a ret_ptr return value is ignored, it will delete the return value
-/// automatically. Otherwise implicitly converts to a plain pointer that must be
-/// deleted by the caller using std::unique_ptr, std::shared_ptr, std::auto_ptr.
-/// or operator delete
-///
-template <class T> class ret_ptr {
-  public:
-    ret_ptr(const ret_ptr& x) : ptr_(x) {}
-    ~ret_ptr() { if (ptr_) delete(ptr_); }
-    operator T*() const { T* p = ptr_; ptr_ = 0; return p; }
-
-  private:
-    void operator=(const ret_ptr&);
-    ret_ptr(T* p=0) : ptr_(p) {}
-    T* ptr_;
-};
-
-}
-
-/// @endcond
-
-#endif // PROTON_RET_PTR_HPP


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org


Mime
View raw message