From 25221b7d2afb70f82eb3805330fd39a6f6708049 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Tue, 26 Jun 2012 23:41:55 +0000 Subject: mk: removed all LIST_INTERFACE, MI_INTERFACE & UTF8_INTERFACE instances. all related functions moved to mir_core. git-svn-id: http://svn.miranda-ng.org/main/trunk@644 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/Utils/mir_dblists.cpp | 14 ++------------ plugins/Utils/mir_dblists.h | 18 +----------------- 2 files changed, 3 insertions(+), 29 deletions(-) (limited to 'plugins/Utils') diff --git a/plugins/Utils/mir_dblists.cpp b/plugins/Utils/mir_dblists.cpp index a1711eda4b..e866589b24 100644 --- a/plugins/Utils/mir_dblists.cpp +++ b/plugins/Utils/mir_dblists.cpp @@ -14,7 +14,7 @@ Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this file; see the file license.txt. If not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, -Boston, MA 02111-1307, USA. +Boston, MA 02111-1307, USA. */ @@ -27,16 +27,6 @@ Boston, MA 02111-1307, USA. #include -struct LIST_INTERFACE list_interface = {0}; - - -void init_list_interface() -{ - list_interface.cbSize = sizeof(list_interface); - CallService(MS_SYSTEM_GET_LI, 0, (LPARAM)&list_interface); -} - - void List_DestroyFreeContents( SortedList* p_list ) { if ( p_list == NULL ) @@ -58,7 +48,7 @@ void List_DestroyFreeContents( SortedList* p_list ) } -int List_Append( SortedList* p_list, void* p_value ) +int List_Append( SortedList* p_list, void* p_value ) { return List_Insert( p_list, p_value, p_list->realCount ); } diff --git a/plugins/Utils/mir_dblists.h b/plugins/Utils/mir_dblists.h index 4d4552b49d..f9a5092327 100644 --- a/plugins/Utils/mir_dblists.h +++ b/plugins/Utils/mir_dblists.h @@ -14,7 +14,7 @@ Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this file; see the file license.txt. If not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, -Boston, MA 02111-1307, USA. +Boston, MA 02111-1307, USA. */ @@ -25,23 +25,7 @@ Boston, MA 02111-1307, USA. #include #include - - -extern struct LIST_INTERFACE list_interface; - - // Need to be called on ME_SYSTEM_MODULESLOADED -void init_list_interface(); - - -#define List_Create(x,y) (list_interface.List_Create(x,y)) -#define List_Destroy(x) (list_interface.List_Destroy(x)) -#define List_Find(x,y) (list_interface.List_Find(x,y)) -#define List_GetIndex(x,y,z) (list_interface.List_GetIndex(x,y,z)) -#define List_Insert(x,y,z) (list_interface.List_Insert(x,y,z)) -#define List_Remove(x,y) (list_interface.List_Remove(x,y)) -#define List_IndexOf(x,y) (list_interface.List_IndexOf(x,y)) - BOOL List_HasItens( SortedList* p_list ); -- cgit v1.2.3