diff options
author | nyamatongwe <nyamatongwe@gmail.com> | 2013-09-17 08:44:42 +1000 |
---|---|---|
committer | nyamatongwe <nyamatongwe@gmail.com> | 2013-09-17 08:44:42 +1000 |
commit | c7eca832e818dbaa7180822fdea6f3aabcd83a32 (patch) | |
tree | 28bcb214dc15b043877ee42cfc397357b64dbcda | |
parent | fcb169d0e6b799133ea01d94ef43a7a86224f6a2 (diff) | |
download | scintilla-mirror-c7eca832e818dbaa7180822fdea6f3aabcd83a32.tar.gz |
Remove WM_UNICHAR as unused. A remnant from the Carbon platform layer.
-rw-r--r-- | cocoa/ScintillaCocoa.mm | 17 |
1 files changed, 0 insertions, 17 deletions
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<unsigned int>(strlen(utf8)), false); - return 1; - } - return 0; - default: sptr_t r = ScintillaBase::WndProc(iMessage, wParam, lParam); |