From 60505765ccd6687586c23ee2f3791426b3d252ac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20J=C3=B6nsson?= Date: Sun, 10 May 2015 10:29:21 +0200 Subject: [PATCH] Remove ScintillaEditView::getLine, no longer used. --- .../src/ScitillaComponent/ScintillaEditView.cpp | 11 ----------- PowerEditor/src/ScitillaComponent/ScintillaEditView.h | 1 - 2 files changed, 12 deletions(-) diff --git a/PowerEditor/src/ScitillaComponent/ScintillaEditView.cpp b/PowerEditor/src/ScitillaComponent/ScintillaEditView.cpp index 86a9cf624..dcfe800f8 100644 --- a/PowerEditor/src/ScitillaComponent/ScintillaEditView.cpp +++ b/PowerEditor/src/ScitillaComponent/ScintillaEditView.cpp @@ -1922,17 +1922,6 @@ void ScintillaEditView::getLine(int lineNumber, TCHAR * line, int lineBufferLen) delete [] lineA; } -generic_string ScintillaEditView::getLine(int lineNumber) -{ - int lineLen = execute(SCI_LINELENGTH, lineNumber); - const int bufSize = 1 + lineLen; - _TCHAR *buf = new _TCHAR[bufSize]; - getLine(lineNumber, buf, bufSize); - generic_string text = buf; - delete[] buf; - return text; -} - void ScintillaEditView::addText(int length, const char *buf) { execute(SCI_ADDTEXT, length, (LPARAM)buf); diff --git a/PowerEditor/src/ScitillaComponent/ScintillaEditView.h b/PowerEditor/src/ScitillaComponent/ScintillaEditView.h index 0c774eb1c..0dcf90aeb 100644 --- a/PowerEditor/src/ScitillaComponent/ScintillaEditView.h +++ b/PowerEditor/src/ScitillaComponent/ScintillaEditView.h @@ -271,7 +271,6 @@ public: void showAutoComletion(int lenEntered, const TCHAR * list); void showCallTip(int startPos, const TCHAR * def); void getLine(int lineNumber, TCHAR * line, int lineBufferLen); - generic_string getLine(int lineNumber); void addText(int length, const char *buf); void insertNewLineAboveCurrentLine();