summaryrefslogtreecommitdiff
path: root/win32
diff options
context:
space:
mode:
authorusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-11-28 03:33:10 +0000
committerusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-11-28 03:33:10 +0000
commit2d6a401ecf966a2b6bfdb06c3bb1d60ccb6eecf8 (patch)
tree1a03a80191cb391162db4903b69d5fd72708e530 /win32
parent70edc47dcad27c8fdfa6df77472e3f9126280d0a (diff)
* include/ruby/win32.h, win32/win32.c (GetCurrentThreadHandle): remove
unused old API. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33881 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'win32')
-rw-r--r--win32/win32.c17
1 files changed, 0 insertions, 17 deletions
diff --git a/win32/win32.c b/win32/win32.c
index bf8ddc34e1..966688286e 100644
--- a/win32/win32.c
+++ b/win32/win32.c
@@ -279,25 +279,8 @@ rb_w32_osver(void)
#define IfWin95(win95, winnt) (winnt)
#endif
-/* License: Ruby's */
-HANDLE
-GetCurrentThreadHandle(void)
-{
- static HANDLE current_process_handle = NULL;
- HANDLE h;
-
- if (!current_process_handle)
- current_process_handle = GetCurrentProcess();
- if (!DuplicateHandle(current_process_handle, GetCurrentThread(),
- current_process_handle, &h,
- 0, FALSE, DUPLICATE_SAME_ACCESS))
- return NULL;
- return h;
-}
-
/* simulate flock by locking a range on the file */
-
/* License: Artistic or GPL */
#define LK_ERR(f,i) \
do { \