Commit 9f46d2f1992c4b7828be993f6fd901441bb8a1a4

Authored by Jürgen Knödlseder
1 parent bcc77b1f

Remove print() method and class extensions.

The print name is reserved in Python and should therefore be removed.

The class extensions are not inherited in derived classes, so there is no point to have them here.
Showing 1 changed file with 2 additions and 16 deletions
pyext/GBase.i
... ... @@ -52,20 +52,6 @@ public:
52 52 virtual ~GBase(void);
53 53  
54 54 // Methods
55   - virtual void clear(void) = 0;
56   - virtual GBase* clone(void) const = 0;
57   - virtual std::string print(void) const = 0;
58   -};
59   -
60   -
61   -/***********************************************************************//**
62   - * @brief GBase class extension
63   - ***************************************************************************/
64   -%extend GBase {
65   - char *__str__() {
66   - return tochar(self->print());
67   - }
68   - GBase copy() {
69   - return (*self);
70   - }
  55 + virtual void clear(void) = 0;
  56 + virtual GBase* clone(void) const = 0;
71 57 };
... ...