Skip to content

Commit 3f61273

Browse files
committed
Remove unused function
1 parent 405b167 commit 3f61273

1 file changed

Lines changed: 1 addition & 154 deletions

File tree

native/src/CefBrowser_N.cpp

Lines changed: 1 addition & 154 deletions
Original file line numberDiff line numberDiff line change
@@ -373,160 +373,7 @@ enum KeyboardCode {
373373
VKEY_COMPOSE = 0xE6,
374374
};
375375
#endif // defined(OS_LINUX)
376-
#if defined(OS_MACOSX)
377-
// A convenient array for getting symbol characters on the number keys.
378-
const char kShiftCharsForNumberKeys[] = ")!@#$%^&*(";
379-
// Convert an ANSI character to a Mac key code.
380-
int GetMacKeyCodeFromChar(int key_char) {
381-
switch (key_char) {
382-
case ' ':
383-
return kVK_Space;
384-
case '0':
385-
case ')':
386-
return kVK_ANSI_0;
387-
case '1':
388-
case '!':
389-
return kVK_ANSI_1;
390-
case '2':
391-
case '@':
392-
return kVK_ANSI_2;
393-
case '3':
394-
case '#':
395-
return kVK_ANSI_3;
396-
case '4':
397-
case '$':
398-
return kVK_ANSI_4;
399-
case '5':
400-
case '%':
401-
return kVK_ANSI_5;
402-
case '6':
403-
case '^':
404-
return kVK_ANSI_6;
405-
case '7':
406-
case '&':
407-
return kVK_ANSI_7;
408-
case '8':
409-
case '*':
410-
return kVK_ANSI_8;
411-
case '9':
412-
case '(':
413-
return kVK_ANSI_9;
414-
case 'a':
415-
case 'A':
416-
return kVK_ANSI_A;
417-
case 'b':
418-
case 'B':
419-
return kVK_ANSI_B;
420-
case 'c':
421-
case 'C':
422-
return kVK_ANSI_C;
423-
case 'd':
424-
case 'D':
425-
return kVK_ANSI_D;
426-
case 'e':
427-
case 'E':
428-
return kVK_ANSI_E;
429-
case 'f':
430-
case 'F':
431-
return kVK_ANSI_F;
432-
case 'g':
433-
case 'G':
434-
return kVK_ANSI_G;
435-
case 'h':
436-
case 'H':
437-
return kVK_ANSI_H;
438-
case 'i':
439-
case 'I':
440-
return kVK_ANSI_I;
441-
case 'j':
442-
case 'J':
443-
return kVK_ANSI_J;
444-
case 'k':
445-
case 'K':
446-
return kVK_ANSI_K;
447-
case 'l':
448-
case 'L':
449-
return kVK_ANSI_L;
450-
case 'm':
451-
case 'M':
452-
return kVK_ANSI_M;
453-
case 'n':
454-
case 'N':
455-
return kVK_ANSI_N;
456-
case 'o':
457-
case 'O':
458-
return kVK_ANSI_O;
459-
case 'p':
460-
case 'P':
461-
return kVK_ANSI_P;
462-
case 'q':
463-
case 'Q':
464-
return kVK_ANSI_Q;
465-
case 'r':
466-
case 'R':
467-
return kVK_ANSI_R;
468-
case 's':
469-
case 'S':
470-
return kVK_ANSI_S;
471-
case 't':
472-
case 'T':
473-
return kVK_ANSI_T;
474-
case 'u':
475-
case 'U':
476-
return kVK_ANSI_U;
477-
case 'v':
478-
case 'V':
479-
return kVK_ANSI_V;
480-
case 'w':
481-
case 'W':
482-
return kVK_ANSI_W;
483-
case 'x':
484-
case 'X':
485-
return kVK_ANSI_X;
486-
case 'y':
487-
case 'Y':
488-
return kVK_ANSI_Y;
489-
case 'z':
490-
case 'Z':
491-
return kVK_ANSI_Z;
492-
// U.S. Specific mappings. Mileage may vary.
493-
case ';':
494-
case ':':
495-
return kVK_ANSI_Semicolon;
496-
case '=':
497-
case '+':
498-
return kVK_ANSI_Equal;
499-
case ',':
500-
case '<':
501-
return kVK_ANSI_Comma;
502-
case '-':
503-
case '_':
504-
return kVK_ANSI_Minus;
505-
case '.':
506-
case '>':
507-
return kVK_ANSI_Period;
508-
case '/':
509-
case '?':
510-
return kVK_ANSI_Slash;
511-
case '`':
512-
case '~':
513-
return kVK_ANSI_Grave;
514-
case '[':
515-
case '{':
516-
return kVK_ANSI_LeftBracket;
517-
case '\\':
518-
case '|':
519-
return kVK_ANSI_Backslash;
520-
case ']':
521-
case '}':
522-
return kVK_ANSI_RightBracket;
523-
case '\'':
524-
case '"':
525-
return kVK_ANSI_Quote;
526-
}
527-
return -1;
528-
}
529-
#endif // defined(OS_MACOSX)
376+
530377
struct JNIObjectsForCreate {
531378
public:
532379
ScopedJNIObjectGlobal jbrowser;

0 commit comments

Comments
 (0)