Skip to content

Commit c373210

Browse files
committed
Remove dead code that is never used in Windows Vista or later (part 2)
This is a follow up CL for r523 (Mozc 2.16.2040.102). This CL is just a removal of dead code and redundant code. Hence no behavior change is intended. BUG=none TEST=none git-svn-id: https://mozc.googlecode.com/svn/trunk@537 a6090854-d499-a067-5803-1114d4e51264
1 parent 99424aa commit c373210

File tree

5 files changed

+3
-14
lines changed

5 files changed

+3
-14
lines changed

src/mozc_version_template.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MAJOR=2
22
MINOR=16
3-
BUILD=2053
3+
BUILD=2054
44
REVISION=102
55
# NACL_DICTIONARY_VERSION is the target version of the system dictionary to be
66
# downloaded by NaCl Mozc.

src/server/cache_service_manager.cc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@
3232
#include "server/cache_service_manager.h"
3333

3434
#include <windows.h>
35-
#include <shlwapi.h> // for SHLoadIndirectString
3635
#include <strsafe.h>
3736
#include <wincrypt.h>
3837

src/server/server.gyp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -217,10 +217,6 @@
217217
'VCLinkerTool': {
218218
'AdditionalDependencies': [
219219
'crypt32.lib', # used in 'mozc_cache_service.cc'
220-
'shlwapi.lib',
221-
],
222-
'DelayLoadDLLs': [
223-
'shlwapi.dll',
224220
],
225221
},
226222
},

src/win32/base/uninstall_helper.cc

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,10 +61,6 @@ namespace {
6161

6262
typedef map<int, DWORD> PreloadOrderToKLIDMap;
6363

64-
// Windows NT 5.1
65-
const DWORD kDefaultKLIDForMSIMEJa = 0xE0010411;
66-
const wchar_t kDefaultMSIMEJaFileName[] = L"imjp81.ime";
67-
6864
// Windows NT 6.0, 6.1 and 6.2
6965
const CLSID CLSID_IMJPTIP = {
7066
0x03b5835f, 0xf03c, 0x411b, {0x9c, 0xe2, 0xaa, 0x23, 0xe1, 0x17, 0x1e, 0x36}

src/win32/base/win32_window_util.cc

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -90,13 +90,11 @@ wstring WindowUtil::GetWindowClassName(HWND window_handle) {
9090

9191
// static
9292
bool WindowUtil::ChangeMessageFilter(HWND window_handle, UINT message) {
93-
typedef BOOL (WINAPI *FPChangeWindowMessageFilter)(UINT, DWORD);
9493
typedef BOOL (WINAPI *FPChangeWindowMessageFilterEx)(
9594
HWND, UINT, DWORD, LPVOID);
9695

97-
// Following constants are not available unless we change the WINVER
96+
// The following constant is not available unless we change the WINVER
9897
// higher enough.
99-
const int kMessageFilterAdd = 1; // MSGFLT_ADD (WINVER >=0x0600)
10098
const int kMessageFilterAllow = 1; // MSGFLT_ALLOW (WINVER >=0x0601)
10199

102100
const HMODULE lib = WinUtil::GetSystemModuleHandle(L"user32.dll");
@@ -124,7 +122,7 @@ bool WindowUtil::ChangeMessageFilter(HWND window_handle, UINT message) {
124122
}
125123

126124
// Windows Vista
127-
if (!::ChangeWindowMessageFilter(message, kMessageFilterAdd)) {
125+
if (!::ChangeWindowMessageFilter(message, MSGFLT_ADD)) {
128126
const int error = ::GetLastError();
129127
LOG(ERROR) << L"ChangeWindowMessageFilter failed. error = " << error;
130128
return false;

0 commit comments

Comments
 (0)