From dcb148a19dcbc43ca5dfcf50a64c07850f608d66 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Sun, 5 Oct 2008 00:35:54 +0200 Subject: [PATCH] Remove duplicated functions. --- src/main/symbian/SDL_env.cpp | 1 - src/main/symbian/SDL_main.cpp | 33 --------------------------------- 2 files changed, 34 deletions(-) diff --git a/src/main/symbian/SDL_env.cpp b/src/main/symbian/SDL_env.cpp index 17bd2ff..3d38e47 100644 --- a/src/main/symbian/SDL_env.cpp +++ b/src/main/symbian/SDL_env.cpp @@ -13,7 +13,6 @@ void* SDL_LoadObject(const char *sofile) return NULL; } - void* SDL_LoadFunction(void *handle, const char *name) { TLex8 v((const TUint8*)(name)); diff --git a/src/main/symbian/SDL_main.cpp b/src/main/symbian/SDL_main.cpp index bbb4117..03a1796 100644 --- a/src/main/symbian/SDL_main.cpp +++ b/src/main/symbian/SDL_main.cpp @@ -738,36 +738,3 @@ void CSDL::MrccatoCommand(TRemConCoreApiOperationId aOperationId, TRemConCoreApi break; } } - -void* SDL_LoadObject(const char *sofile) -{ - RLibrary* lib = new RLibrary(); - if(lib == NULL) - return NULL; - TFileName name; - name.Copy(TPtrC8((const TUint8*)sofile)); - if(KErrNone == lib->Load(name)) - return lib; - delete lib; - return NULL; -} - -void* SDL_LoadFunction(void *handle, const char *name) -{ - TLex8 v((const TUint8*)(name)); - int ord; - - if(KErrNone != v.Val(ord)) - return NULL; - - const RLibrary* lib = reinterpret_cast(handle); - TLibraryFunction f = lib->Lookup(ord); - return (void*)(f); -} - -void SDL_UnloadObject(void *handle) -{ - RLibrary* lib = reinterpret_cast(handle); - lib->Close(); - delete lib; -} -- 2.11.4.GIT