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 | b42849c8550deaef4bac5f73fa2329741b3309c3 (patch) | |
tree | 319fb164c098186271552099ae89db933397753e | |
parent | 0db7470068cff977ee5ed837041bb30c5fdd820e (diff) | |
download | scintilla-mirror-b42849c8550deaef4bac5f73fa2329741b3309c3.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); |