Removed unused/duplicated/deprecated includes.
authorBruno Abinader <bruno.abinader@openbossa.org>
Tue, 16 Jun 2009 13:19:36 +0000 (09:19 -0400)
committerBruno Abinader <bruno.abinader@openbossa.org>
Tue, 16 Jun 2009 13:36:27 +0000 (09:36 -0400)
Removed unused 'cimport purple' from .pxd files, reduced imports by
adding only used includes (on .pyx files), removed deprecated
connection.pyx file.

Signed-off-by: Bruno Abinader <bruno.abinader@openbossa.org>

14 files changed:
account.pyx
account_cbs.pxd
blist_cbs.pxd
buddy.pyx
connection.pyx [deleted file]
connection_cbs.pxd
conversation.pyx
conversation_cbs.pxd
notify_cbs.pxd
protocol.pyx
proxy.pyx
purple.pyx
request_cbs.pxd
signal_cbs.pxd

index 5935ba9..a33df6c 100644 (file)
 #  along with this program.  If not, see <http://www.gnu.org/licenses/>.
 #
 
 #  along with this program.  If not, see <http://www.gnu.org/licenses/>.
 #
 
-cimport purple
+cimport account
+cimport accountopt
+cimport blist
+cimport plugin
+cimport prefs
+cimport prpl
+cimport savedstatuses
+cimport server
+cimport status
 
 cdef class Account:
     """
 
 cdef class Account:
     """
@@ -669,3 +677,5 @@ cdef class Account:
             return True
         else:
             return False
             return True
         else:
             return False
+
+include "buddy.pyx"
index 2d8bf68..06cd2ca 100644 (file)
@@ -17,8 +17,6 @@
 #  along with this program.  If not, see <http://www.gnu.org/licenses/>.
 #
 
 #  along with this program.  If not, see <http://www.gnu.org/licenses/>.
 #
 
-cimport purple
-
 cdef extern from *:
     ctypedef char const_char "const char"
 
 cdef extern from *:
     ctypedef char const_char "const char"
 
index fc587e5..0739b97 100644 (file)
@@ -17,8 +17,6 @@
 #  along with this program.  If not, see <http://www.gnu.org/licenses/>.
 #
 
 #  along with this program.  If not, see <http://www.gnu.org/licenses/>.
 #
 
-cimport purple
-
 cdef extern from *:
     ctypedef char const_char "const char"
 
 cdef extern from *:
     ctypedef char const_char "const char"
 
index a464b37..ce45965 100644 (file)
--- a/buddy.pyx
+++ b/buddy.pyx
@@ -17,7 +17,9 @@
 #  along with this program.  If not, see <http://www.gnu.org/licenses/>.
 #
 
 #  along with this program.  If not, see <http://www.gnu.org/licenses/>.
 #
 
-cimport purple
+cimport account
+cimport blist
+cimport status
 
 cdef class Buddy:
     '''Buddy class
 
 cdef class Buddy:
     '''Buddy class
diff --git a/connection.pyx b/connection.pyx
deleted file mode 100644 (file)
index fe9cb75..0000000
+++ /dev/null
@@ -1,27 +0,0 @@
-#
-#  Copyright (c) 2008 INdT - Instituto Nokia de Tecnologia
-#
-#  This file is part of python-purple.
-#
-#  python-purple is free software: you can redistribute it and/or modify
-#  it under the terms of the GNU General Public License as published by
-#  the Free Software Foundation, either version 3 of the License, or
-#  (at your option) any later version.
-#
-#  python-purple is distributed in the hope that it will be useful,
-#  but WITHOUT ANY WARRANTY; without even the implied warranty of
-#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-#  GNU General Public License for more details.
-#
-#  You should have received a copy of the GNU General Public License
-#  along with this program.  If not, see <http://www.gnu.org/licenses/>.
-#
-
-cimport purple
-
-cdef class Connection:
-    """ Connection class """
-    cdef connection.PurpleConnection *__conn
-
-    def __init__(self):
-        pass
index 501f39e..16576c2 100644 (file)
@@ -17,8 +17,6 @@
 #  along with this program.  If not, see <http://www.gnu.org/licenses/>.
 #
 
 #  along with this program.  If not, see <http://www.gnu.org/licenses/>.
 #
 
-cimport purple
-
 cdef extern from *:
     ctypedef char const_char "const char"
 
 cdef extern from *:
     ctypedef char const_char "const char"
 
index 643d781..665c77a 100644 (file)
@@ -17,7 +17,7 @@
 #  along with this program.  If not, see <http://www.gnu.org/licenses/>.
 #
 
 #  along with this program.  If not, see <http://www.gnu.org/licenses/>.
 #
 
-cimport purple
+cimport conversation
 
 cdef class Conversation:
     """
 
 cdef class Conversation:
     """
index 542bfcd..891a785 100644 (file)
@@ -17,8 +17,6 @@
 #  along with this program.  If not, see <http://www.gnu.org/licenses/>.
 #
 
 #  along with this program.  If not, see <http://www.gnu.org/licenses/>.
 #
 
-cimport purple
-
 cdef extern from *:
     ctypedef char const_char "const char"
     ctypedef glib.guchar const_guchar "const guchar"
 cdef extern from *:
     ctypedef char const_char "const char"
     ctypedef glib.guchar const_guchar "const guchar"
index bdb8da7..fb9f061 100644 (file)
@@ -17,8 +17,6 @@
 #  along with this program.  If not, see <http://www.gnu.org/licenses/>.
 #
 
 #  along with this program.  If not, see <http://www.gnu.org/licenses/>.
 #
 
-cimport purple
-
 cdef extern from *:
     ctypedef char const_char "const char"
     ctypedef int size_t
 cdef extern from *:
     ctypedef char const_char "const char"
     ctypedef int size_t
index 08c1e36..afde2cc 100644 (file)
 #  along with this program.  If not, see <http://www.gnu.org/licenses/>.
 #
 
 #  along with this program.  If not, see <http://www.gnu.org/licenses/>.
 #
 
-cimport purple
+cimport glib
+
+cimport accountopt
+cimport plugin
+cimport prefs
+cimport prpl
+
+cdef extern from *:
+    ctypedef char const_char "const char"
 
 cdef class Protocol:
     """
 
 cdef class Protocol:
     """
index 13a1bdd..f02cd97 100644 (file)
--- a/proxy.pyx
+++ b/proxy.pyx
@@ -17,7 +17,8 @@
 #  along with this program.  If not, see <http://www.gnu.org/licenses/>.
 #
 
 #  along with this program.  If not, see <http://www.gnu.org/licenses/>.
 #
 
-cimport purple
+cimport account
+cimport proxy
 
 cdef class ProxyInfoType:
     cdef proxy.PurpleProxyType c_type
 
 cdef class ProxyInfoType:
     cdef proxy.PurpleProxyType c_type
index 24cfe2c..5ff3e77 100644 (file)
@@ -439,6 +439,4 @@ include "protocol.pyx"
 #include "plugin.pyx"
 include "proxy.pyx"
 include "account.pyx"
 #include "plugin.pyx"
 include "proxy.pyx"
 include "account.pyx"
-include "buddy.pyx"
-#include "connection.pyx"
 include "conversation.pyx"
 include "conversation.pyx"
index e45bc24..ca0f661 100644 (file)
@@ -17,8 +17,6 @@
 #  along with this program.  If not, see <http://www.gnu.org/licenses/>.
 #
 
 #  along with this program.  If not, see <http://www.gnu.org/licenses/>.
 #
 
-cimport purple
-
 cdef extern from *:
     ctypedef char const_char "const char"
     ctypedef int size_t
 cdef extern from *:
     ctypedef char const_char "const char"
     ctypedef int size_t
index 81a064d..9d9a078 100644 (file)
@@ -17,8 +17,6 @@
 #  along with this program.  If not, see <http://www.gnu.org/licenses/>.
 #
 
 #  along with this program.  If not, see <http://www.gnu.org/licenses/>.
 #
 
-cimport purple
-
 signal_cbs = {}
 
 cdef extern from *:
 signal_cbs = {}
 
 cdef extern from *: