From b42849c8550deaef4bac5f73fa2329741b3309c3 Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Tue, 17 Sep 2013 08:44:42 +1000 Subject: Remove WM_UNICHAR as unused. A remnant from the Carbon platform layer. --- cocoa/ScintillaCocoa.mm | 17 ----------------- 1 file changed, 17 deletions(-) (limited to 'cocoa') diff --git a/cocoa/ScintillaCocoa.mm b/cocoa/ScintillaCocoa.mm index aa339a96e..07f29bd8e 100644 --- a/cocoa/ScintillaCocoa.mm +++ b/cocoa/ScintillaCocoa.mm @@ -28,10 +28,6 @@ using namespace Scintilla; -#ifndef WM_UNICHAR -#define WM_UNICHAR 0x0109 -#endif - NSString* ScintillaRecPboardType = @"com.scintilla.utf16-plain-text.rectangular"; //-------------------------------------------------------------------------------------------------- @@ -802,19 +798,6 @@ sptr_t ScintillaCocoa::WndProc(unsigned int iMessage, uptr_t wParam, sptr_t lPar HideFindIndicator(); return 0; - case WM_UNICHAR: - // Special case not used normally. Characters passed in this way will be inserted - // regardless of their value or modifier states. That means no command interpretation is - // performed. - if (IsUnicodeMode()) - { - NSString* input = [NSString stringWithCharacters: (const unichar*) &wParam length: 1]; - const char* utf8 = [input UTF8String]; - AddCharUTF((char*) utf8, static_cast(strlen(utf8)), false); - return 1; - } - return 0; - default: sptr_t r = ScintillaBase::WndProc(iMessage, wParam, lParam); -- cgit v1.2.3