Don't need COW implementation in NonCopyable KeyRing.
authorMichael Andres <ma@suse.de>
Mon, 2 Sep 2013 14:40:32 +0000 (16:40 +0200)
committerMichael Andres <ma@suse.de>
Mon, 2 Sep 2013 14:40:32 +0000 (16:40 +0200)
zypp/KeyRing.cc
zypp/KeyRing.h

index b97f095..cb4c719 100644 (file)
@@ -249,20 +249,6 @@ namespace zypp
      * \endcode
      */
     CachedPublicKeyData cachedPublicKeyData;
-
-  public:
-    /** Offer default Impl. */
-    static shared_ptr<Impl> nullimpl()
-    {
-      static shared_ptr<Impl> _nullimpl( new Impl( filesystem::TmpPath::defaultLocation() ) );
-      return _nullimpl;
-    }
-
-  private:
-    friend Impl * rwcowClone<Impl>( const Impl * rhs );
-    /** clone for RWCOW_pointer */
-    Impl * clone() const
-    { return new Impl( *this ); }
   };
   ///////////////////////////////////////////////////////////////////
 
index c45c330..090ca5d 100644 (file)
@@ -282,7 +282,7 @@ namespace zypp
 
   private:
     /** Pointer to implementation */
-    RWCOW_pointer<Impl> _pimpl;
+    RW_pointer<Impl> _pimpl;
   };
   ///////////////////////////////////////////////////////////////////