Remove duplicated code. Bug #3494492. From Marko Njezic.
Remove duplicated code. Bug #3494492. From Marko Njezic.

R1dO/scintilla_clone,R1dO/scintilla_clone,R1dO/scintilla_clone,R1dO/scintilla_clone,R1dO/scintilla_clone,R1dO/scintilla_clone,R1dO/scintilla_clone,R1dO/scintilla_clone