Skip to content

Commit

Permalink
xrCore: remove old module lookup functions
Browse files Browse the repository at this point in the history
  • Loading branch information
Xottab-DUTY committed Nov 11, 2017
1 parent b172ce0 commit bbbb037
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 17 deletions.
1 change: 0 additions & 1 deletion src/Layers/xrRender/HW.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,6 @@ void CHW::CreateD3D()
void CHW::DestroyD3D()
{
_RELEASE(this->pD3D);
//hD3D->close();
}

//////////////////////////////////////////////////////////////////////
Expand Down
10 changes: 0 additions & 10 deletions src/xrCore/ModuleLookup.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -48,14 +48,4 @@ void* Module::getProcAddress(pcstr procName) const
{
return ::GetProcAddress(static_cast<HMODULE>(handle), procName);
}

HMODULE LoadLibrary(const char* libraryFileName, bool log)
{
if (log)
Log("Loading DLL:", libraryFileName);
return ::LoadLibraryA(libraryFileName);
}

void UnloadLibrary(HMODULE libraryHandle) { FreeLibrary(libraryHandle); }
void* GetProcAddress(HMODULE libraryHandle, const char* procName) { return ::GetProcAddress(libraryHandle, procName); }
}
6 changes: 0 additions & 6 deletions src/xrCore/ModuleLookup.hpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
#pragma once

#include "xrCore.h"

namespace XRay
{
class XRCORE_API Module
Expand All @@ -22,8 +20,4 @@ class XRCORE_API Module

void* getProcAddress(pcstr procName) const;
};

XRCORE_API HMODULE LoadLibrary(const char* libraryFileName, bool log = true);
XRCORE_API void UnloadLibrary(HMODULE libraryHandle);
XRCORE_API void* GetProcAddress(HMODULE libraryHandle, const char* procName);
}

0 comments on commit bbbb037

Please sign in to comment.