From 5a85f3d6ee1d6121c0f7bec0eceb677179f5b3de Mon Sep 17 00:00:00 2001
From: Cyrille Bagard <nocbos@gmail.com>
Date: Fri, 7 Dec 2018 23:16:14 +0100
Subject: Cleaned code.

---
 plugins/pychrysalide/gtkext/displaypanel.c | 57 ------------------------------
 1 file changed, 57 deletions(-)

diff --git a/plugins/pychrysalide/gtkext/displaypanel.c b/plugins/pychrysalide/gtkext/displaypanel.c
index ddcd654..bcda60c 100644
--- a/plugins/pychrysalide/gtkext/displaypanel.c
+++ b/plugins/pychrysalide/gtkext/displaypanel.c
@@ -25,7 +25,6 @@
 #include "displaypanel.h"
 
 
-#include <string.h>
 #include <pygobject.h>
 
 
@@ -34,63 +33,9 @@
 
 #include "../access.h"
 #include "../helpers.h"
-#include "../arch/vmpa.h"
 
 
 
-/* Crée un nouvel objet Python de type 'DisplayPanel'. */
-#if 0
-static PyObject *py_display_panel_new(PyTypeObject *, PyObject *, PyObject *);
-#endif
-
-
-
-/******************************************************************************
-*                                                                             *
-*  Paramètres  : type = type de l'objet à instancier.                         *
-*                args = arguments fournis à l'appel.                          *
-*                kwds = arguments de type key=val fournis.                    *
-*                                                                             *
-*  Description : Crée un nouvel objet Python de type 'DisplayPanel'.          *
-*                                                                             *
-*  Retour      : Instance Python mise en place.                               *
-*                                                                             *
-*  Remarques   : -                                                            *
-*                                                                             *
-******************************************************************************/
-#if 0
-static PyObject *py_display_panel_new(PyTypeObject *type, PyObject *args, PyObject *kwds)
-{
-#if 0
-    PyObject *result;                       /* Instance à retourner        */
-    const char *name;                       /* Désignation humaine         */
-    const char *lname;                      /* Nom version longue          */
-    PyGObject *widget;                      /* Composant visuel du panneau */
-    const char *path;                       /* Placement à l'affichage     */
-    int ret;                                /* Bilan de lecture des args.  */
-    GEditorItem *item;                      /* Version GLib du format      */
-
-    ret = PyArg_ParseTuple(args, "ssOs", &name, &lname, &widget, &path);
-    if (!ret) Py_RETURN_NONE;
-
-    item = g_view_panel_new(name, lname,
-                            GTK_WIDGET(pygobject_get(widget)), path);
-
-    result = py_display_panel_from_c(G_DISPLAY_PANEL(item));
-    g_object_unref(item);
-
-    return (PyObject *)result;
-#endif
-
-    /* FIXME */
-
-
-    Py_RETURN_NONE;
-
-}
-#endif
-
-
 /******************************************************************************
 *                                                                             *
 *  Paramètres  : -                                                            *
@@ -126,8 +71,6 @@ PyTypeObject *get_python_display_panel_type(void)
 
         .tp_methods     = py_display_panel_methods,
         .tp_getset      = py_display_panel_getseters,
-        //.tp_new         = py_display_panel_new,
-        //.tp_init        = (initproc)pychrysalide_allow_args_for_gobjects
 
     };
 
-- 
cgit v0.11.2-87-g4458