From 9f46d2f1992c4b7828be993f6fd901441bb8a1a4 Mon Sep 17 00:00:00 2001 From: Jürgen Knödlseder Date: Sat, 13 Oct 2012 23:03:23 +0200 Subject: [PATCH] Remove print() method and class extensions. --- pyext/GBase.i | 18 ++---------------- 1 file changed, 2 insertions(+), 16 deletions(-) diff --git a/pyext/GBase.i b/pyext/GBase.i index 425a39e..9a9b6e0 100644 --- a/pyext/GBase.i +++ b/pyext/GBase.i @@ -52,20 +52,6 @@ public: virtual ~GBase(void); // Methods - virtual void clear(void) = 0; - virtual GBase* clone(void) const = 0; - virtual std::string print(void) const = 0; -}; - - -/***********************************************************************//** - * @brief GBase class extension - ***************************************************************************/ -%extend GBase { - char *__str__() { - return tochar(self->print()); - } - GBase copy() { - return (*self); - } + virtual void clear(void) = 0; + virtual GBase* clone(void) const = 0; }; -- libgit2 0.21.4