[BROWSEUI][DEVMGR][EXPLORER][NTGDI][NTOBJSHEX][NTVDM][SETUPAPI] Remove/comment out some unused variables. CORE-11799 (#94)

This commit is contained in:
Amine Khaldi 2017-10-28 15:04:18 +01:00
parent 0625e4d4f5
commit 5cb0615147
12 changed files with 13 additions and 23 deletions

View file

@ -1309,7 +1309,6 @@ class CTrayNotifyWnd :
SIZE szTrayClockMin; SIZE szTrayClockMin;
SIZE szTrayNotify; SIZE szTrayNotify;
MARGINS ContentMargin; MARGINS ContentMargin;
HFONT hFontClock;
union union
{ {
DWORD dwFlags; DWORD dwFlags;
@ -1326,7 +1325,6 @@ public:
m_pager(NULL), m_pager(NULL),
m_clock(NULL), m_clock(NULL),
TrayTheme(NULL), TrayTheme(NULL),
hFontClock(NULL),
dwFlags(0) dwFlags(0)
{ {
ZeroMemory(&szTrayClockMin, sizeof(szTrayClockMin)); ZeroMemory(&szTrayClockMin, sizeof(szTrayClockMin));

View file

@ -14,7 +14,6 @@ class CNtObjectFolderExtractIcon :
public IExtractIconW public IExtractIconW
{ {
PCWSTR m_NtPath; PCWSTR m_NtPath;
PCIDLIST_ABSOLUTE m_pcidlFolder;
PCITEMID_CHILD m_pcidlChild; PCITEMID_CHILD m_pcidlChild;
public: public:

View file

@ -12,7 +12,7 @@
const GUID CLSID_RegistryFolder = { 0x1c6d6e08, 0x2332, 0x4a7b, { 0xa9, 0x4d, 0x64, 0x32, 0xdb, 0x2b, 0x5a, 0xe6 } }; const GUID CLSID_RegistryFolder = { 0x1c6d6e08, 0x2332, 0x4a7b, { 0xa9, 0x4d, 0x64, 0x32, 0xdb, 0x2b, 0x5a, 0xe6 } };
// {18A4B504-F6D8-4D8A-8661-6296514C2CF0} // {18A4B504-F6D8-4D8A-8661-6296514C2CF0}
static const GUID GUID_RegistryColumns = { 0x18a4b504, 0xf6d8, 0x4d8a, { 0x86, 0x61, 0x62, 0x96, 0x51, 0x4c, 0x2c, 0xf0 } }; //static const GUID GUID_RegistryColumns = { 0x18a4b504, 0xf6d8, 0x4d8a, { 0x86, 0x61, 0x62, 0x96, 0x51, 0x4c, 0x2c, 0xf0 } };
enum RegistryColumns enum RegistryColumns
{ {

View file

@ -43,7 +43,7 @@ inline void FillSolidRect(HDC dc, const RECT *bounds, COLORREF clr)
::ExtTextOut(dc, 0, 0, ETO_OPAQUE, bounds, NULL, 0, NULL); ::ExtTextOut(dc, 0, 0, ETO_OPAQUE, bounds, NULL, 0, NULL);
} }
static const int gSmallImageSize = 22; //static const int gSmallImageSize = 22;
static const int gMediumImageSize = 26; static const int gMediumImageSize = 26;
static const int gLargeImageSize = 38; static const int gLargeImageSize = 38;

View file

@ -33,15 +33,10 @@ class CProxyDesktop :
public CComObjectRootEx<CComMultiThreadModelNoCS>, public CComObjectRootEx<CComMultiThreadModelNoCS>,
public CWindowImpl < CProxyDesktop, CWindow, CFrameWinTraits > public CWindowImpl < CProxyDesktop, CWindow, CFrameWinTraits >
{ {
IEThreadParamBlock * m_Parameters;
LPITEMIDLIST m_rootPidl;
public: public:
CProxyDesktop(IEThreadParamBlock * parameters) : CProxyDesktop(IEThreadParamBlock * parameters)
m_Parameters(parameters)
{ {
} }
virtual ~CProxyDesktop() virtual ~CProxyDesktop()

View file

@ -167,7 +167,7 @@ HRESULT WINAPI SHBindToFolder(LPCITEMIDLIST path, IShellFolder **newFolder)
} }
static const TCHAR szCabinetWndClass[] = TEXT("CabinetWClass"); static const TCHAR szCabinetWndClass[] = TEXT("CabinetWClass");
static const TCHAR szExploreWndClass[] = TEXT("ExploreWClass"); //static const TCHAR szExploreWndClass[] = TEXT("ExploreWClass");
class CDockManager; class CDockManager;
class CShellBrowser; class CShellBrowser;

View file

@ -38,8 +38,6 @@ class CToolsBand :
{ {
private: private:
CComPtr<IDockingWindowSite> fDockSite; CComPtr<IDockingWindowSite> fDockSite;
GUID fExecCommandCategory;
CComPtr<IOleCommandTarget> fExecCommandTarget;
HIMAGELIST m_himlNormal; HIMAGELIST m_himlNormal;
HIMAGELIST m_himlHot; HIMAGELIST m_himlHot;
public: public:
@ -163,7 +161,7 @@ static const int cutImageIndex = 5;
static const int copyImageIndex = 6; static const int copyImageIndex = 6;
static const int pasteImageIndex = 7; static const int pasteImageIndex = 7;
static const int undoImageIndex = 8; static const int undoImageIndex = 8;
static const int redoImageIndex = 9; //static const int redoImageIndex = 9;
static const int deleteImageIndex = 10; static const int deleteImageIndex = 10;
// 11 // 11
// 12 // 12
@ -186,13 +184,13 @@ static const int upImageIndex = 28;
static const int mapDriveImageIndex = 29; static const int mapDriveImageIndex = 29;
static const int disconnectImageIndex = 30; static const int disconnectImageIndex = 30;
// 31 // 31
static const int viewsAltImageIndex = 32; // same image as viewsImageIndex //static const int viewsAltImageIndex = 32; // same image as viewsImageIndex
// 33 // 33
// 34 // 34
// 35 // 35
// 36 // 36
// 37 // 37
static const int viewsAlt2ImageIndex = 38; // same image as viewsAltImageIndex & viewsImageIndex //static const int viewsAlt2ImageIndex = 38; // same image as viewsAltImageIndex & viewsImageIndex
// 39 // 39
// 40 // 40
// 41 // 41

View file

@ -15,7 +15,6 @@ class CDeviceManager
HWND m_hStatusBar; HWND m_hStatusBar;
HWND m_hToolBar; HWND m_hToolBar;
HMENU m_hMenu; HMENU m_hMenu;
HMENU m_hActionMenu;
int m_CmdShow; int m_CmdShow;
BOOL m_RefreshPending; BOOL m_RefreshPending;

View file

@ -27,13 +27,11 @@
/* Unicode constants */ /* Unicode constants */
static const WCHAR BackSlash[] = {'\\',0}; static const WCHAR BackSlash[] = {'\\',0};
static const WCHAR Class[] = {'C','l','a','s','s',0};
static const WCHAR ClassGUID[] = {'C','l','a','s','s','G','U','I','D',0}; static const WCHAR ClassGUID[] = {'C','l','a','s','s','G','U','I','D',0};
static const WCHAR ClassInstall32[] = {'C','l','a','s','s','I','n','s','t','a','l','l','3','2',0}; static const WCHAR ClassInstall32[] = {'C','l','a','s','s','I','n','s','t','a','l','l','3','2',0};
static const WCHAR DotServices[] = {'.','S','e','r','v','i','c','e','s',0}; static const WCHAR DotServices[] = {'.','S','e','r','v','i','c','e','s',0};
static const WCHAR InterfaceInstall32[] = {'I','n','t','e','r','f','a','c','e','I','n','s','t','a','l','l','3','2',0}; static const WCHAR InterfaceInstall32[] = {'I','n','t','e','r','f','a','c','e','I','n','s','t','a','l','l','3','2',0};
static const WCHAR SetupapiDll[] = {'s','e','t','u','p','a','p','i','.','d','l','l',0}; static const WCHAR SetupapiDll[] = {'s','e','t','u','p','a','p','i','.','d','l','l',0};
static const WCHAR Version[] = {'V','e','r','s','i','o','n',0};
typedef BOOL typedef BOOL
(WINAPI* PROPERTY_PAGE_PROVIDER) ( (WINAPI* PROPERTY_PAGE_PROVIDER) (

View file

@ -277,7 +277,10 @@ static VGA_REGISTERS VideoMode_320x200_256color =
* etc...) A choice should be made at some point. * etc...) A choice should be made at some point.
*/ */
#if 0
// This is the same as EgaPalette__HiRes // This is the same as EgaPalette__HiRes
// Unused at the moment
static CONST COLORREF TextPalette[VGA_MAX_COLORS / 4] = static CONST COLORREF TextPalette[VGA_MAX_COLORS / 4] =
{ {
RGB(0x00, 0x00, 0x00), RGB(0x00, 0x00, 0xAA), RGB(0x00, 0xAA, 0x00), RGB(0x00, 0xAA, 0xAA), RGB(0x00, 0x00, 0x00), RGB(0x00, 0x00, 0xAA), RGB(0x00, 0xAA, 0x00), RGB(0x00, 0xAA, 0xAA),
@ -346,8 +349,6 @@ static CONST COLORREF mtext_s3_palette[64] =
RGB(0xFF, 0xFF, 0xFF), RGB(0xFF, 0xFF, 0xFF), RGB(0xFF, 0xFF, 0xFF), RGB(0xFF, 0xFF, 0xFF) RGB(0xFF, 0xFF, 0xFF), RGB(0xFF, 0xFF, 0xFF), RGB(0xFF, 0xFF, 0xFF), RGB(0xFF, 0xFF, 0xFF)
}; };
#if 0
// Unused at the moment // Unused at the moment
static CONST COLORREF CgaPalette[16] = static CONST COLORREF CgaPalette[16] =
{ {

View file

@ -31,6 +31,8 @@
/* PRIVATE VARIABLES **********************************************************/ /* PRIVATE VARIABLES **********************************************************/
#if 0
/* FIXME: Are we going to use this somewhere? */
static BYTE Yield[] = static BYTE Yield[] =
{ {
0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90,
@ -38,6 +40,7 @@ static BYTE Yield[] =
BOP(BOP_UNSIMULATE), // UnSimulate16 BOP BOP(BOP_UNSIMULATE), // UnSimulate16 BOP
}; };
C_ASSERT(sizeof(Yield) == 16 * sizeof(BYTE)); C_ASSERT(sizeof(Yield) == 16 * sizeof(BYTE));
#endif
/* PUBLIC FUNCTIONS ***********************************************************/ /* PUBLIC FUNCTIONS ***********************************************************/

View file

@ -48,7 +48,6 @@ extern const MATRIX gmxWorldToPageDefault;
#define gmxWorldToDeviceDefault gmxWorldToPageDefault #define gmxWorldToDeviceDefault gmxWorldToPageDefault
FT_Library library; FT_Library library;
static const WORD gusEnglishUS = MAKELANGID(LANG_ENGLISH, SUBLANG_ENGLISH_US);
/* special font names */ /* special font names */
static const UNICODE_STRING MarlettW = RTL_CONSTANT_STRING(L"Marlett"); static const UNICODE_STRING MarlettW = RTL_CONSTANT_STRING(L"Marlett");