Skip to content

Commit bbbb037

Browse files
committed
xrCore: remove old module lookup functions
1 parent b172ce0 commit bbbb037

File tree

3 files changed

+0
-17
lines changed

3 files changed

+0
-17
lines changed

src/Layers/xrRender/HW.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,6 @@ void CHW::CreateD3D()
104104
void CHW::DestroyD3D()
105105
{
106106
_RELEASE(this->pD3D);
107-
//hD3D->close();
108107
}
109108

110109
//////////////////////////////////////////////////////////////////////

src/xrCore/ModuleLookup.cpp

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -48,14 +48,4 @@ void* Module::getProcAddress(pcstr procName) const
4848
{
4949
return ::GetProcAddress(static_cast<HMODULE>(handle), procName);
5050
}
51-
52-
HMODULE LoadLibrary(const char* libraryFileName, bool log)
53-
{
54-
if (log)
55-
Log("Loading DLL:", libraryFileName);
56-
return ::LoadLibraryA(libraryFileName);
57-
}
58-
59-
void UnloadLibrary(HMODULE libraryHandle) { FreeLibrary(libraryHandle); }
60-
void* GetProcAddress(HMODULE libraryHandle, const char* procName) { return ::GetProcAddress(libraryHandle, procName); }
6151
}

src/xrCore/ModuleLookup.hpp

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
#pragma once
22

3-
#include "xrCore.h"
4-
53
namespace XRay
64
{
75
class XRCORE_API Module
@@ -22,8 +20,4 @@ class XRCORE_API Module
2220

2321
void* getProcAddress(pcstr procName) const;
2422
};
25-
26-
XRCORE_API HMODULE LoadLibrary(const char* libraryFileName, bool log = true);
27-
XRCORE_API void UnloadLibrary(HMODULE libraryHandle);
28-
XRCORE_API void* GetProcAddress(HMODULE libraryHandle, const char* procName);
2923
}

0 commit comments

Comments
 (0)