aboutsummaryrefslogtreecommitdiffstats
path: root/lib/System/Win32
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-07-08 01:07:39 +0000
committerChris Lattner <sabre@nondot.org>2009-07-08 01:07:39 +0000
commitb00d54ed680a35df08561e6e852b57a88c49c004 (patch)
tree12b1acea8979285b16c08189c0294662b856579a /lib/System/Win32
parent56513e47f978223c77e178c951d1230f4e470f2b (diff)
downloadexternal_llvm-b00d54ed680a35df08561e6e852b57a88c49c004.zip
external_llvm-b00d54ed680a35df08561e6e852b57a88c49c004.tar.gz
external_llvm-b00d54ed680a35df08561e6e852b57a88c49c004.tar.bz2
remove two methods that no longer exist.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74982 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/System/Win32')
-rw-r--r--lib/System/Win32/DynamicLibrary.inc24
1 files changed, 0 insertions, 24 deletions
diff --git a/lib/System/Win32/DynamicLibrary.inc b/lib/System/Win32/DynamicLibrary.inc
index fd2ecc8..10e64aa 100644
--- a/lib/System/Win32/DynamicLibrary.inc
+++ b/lib/System/Win32/DynamicLibrary.inc
@@ -88,30 +88,6 @@ extern "C" {
}
}
-DynamicLibrary::DynamicLibrary() : handle(0) {
- handle = GetModuleHandle(NULL);
- OpenedHandles.push_back((HMODULE)handle);
-}
-
-DynamicLibrary::~DynamicLibrary() {
- if (handle == 0)
- return;
-
- // GetModuleHandle() does not increment the ref count, so we must not free
- // the handle to the executable.
- if (handle != GetModuleHandle(NULL))
- FreeLibrary((HMODULE)handle);
- handle = 0;
-
- for (std::vector<HMODULE>::iterator I = OpenedHandles.begin(),
- E = OpenedHandles.end(); I != E; ++I) {
- if (*I == handle) {
- // Note: don't use the swap/pop_back trick here. Order is important.
- OpenedHandles.erase(I);
- }
- }
-}
-
bool DynamicLibrary::LoadLibraryPermanently(const char *filename,
std::string *ErrMsg) {
if (filename) {