File tree Expand file tree Collapse file tree 1 file changed +2
-21
lines changed
storage/ndb/src/common/portlib Expand file tree Collapse file tree 1 file changed +2
-21
lines changed Original file line number Diff line number Diff line change 7
7
Copyright Abandoned 1998 Irena Pancirov - Irnet Snc
8
8
This file is public domain and comes with NO WARRANTY of any kind
9
9
10
- Modifications Copyright (c) 2017, 2021 , Oracle and/or its affiliates.
10
+ Modifications Copyright (c) 2017, 2022 , Oracle and/or its affiliates.
11
11
All rights reserved.
12
12
*/
13
13
#include < windows.h>
@@ -24,8 +24,6 @@ static NTService *pService;
24
24
-------------------------------------------------------------------------- */
25
25
NTService::NTService ()
26
26
{
27
-
28
- bOsNT = false ;
29
27
// service variables
30
28
ServiceName = NULL ;
31
29
hExitEvent = 0 ;
@@ -63,23 +61,6 @@ NTService::~NTService()
63
61
{
64
62
if (ServiceName != NULL ) delete[] ServiceName;
65
63
}
66
- /* ------------------------------------------------------------------------
67
-
68
- -------------------------------------------------------------------------- */
69
-
70
- BOOL NTService::GetOS ()
71
- {
72
- bOsNT = false ;
73
- memset (&osVer, 0 , sizeof (OSVERSIONINFO));
74
- osVer.dwOSVersionInfoSize = sizeof (OSVERSIONINFO);
75
- if (GetVersionEx (&osVer))
76
- {
77
- if (osVer.dwPlatformId == VER_PLATFORM_WIN32_NT)
78
- bOsNT = true ;
79
- }
80
- return bOsNT;
81
- }
82
-
83
64
84
65
/* *
85
66
Registers the main service thread with the service manager.
@@ -574,4 +555,4 @@ BOOL NTService::is_super_user()
574
555
}
575
556
FreeSid (psidAdministrators);
576
557
return ret_value;
577
- }
558
+ }
You can’t perform that action at this time.
0 commit comments