Remove ScintillaEditView::getLine, no longer used.

pull/44/head
Andreas Jönsson 10 years ago
parent dd846658e6
commit 60505765cc

@ -1922,17 +1922,6 @@ void ScintillaEditView::getLine(int lineNumber, TCHAR * line, int lineBufferLen)
delete [] lineA; 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) void ScintillaEditView::addText(int length, const char *buf)
{ {
execute(SCI_ADDTEXT, length, (LPARAM)buf); execute(SCI_ADDTEXT, length, (LPARAM)buf);

@ -271,7 +271,6 @@ public:
void showAutoComletion(int lenEntered, const TCHAR * list); void showAutoComletion(int lenEntered, const TCHAR * list);
void showCallTip(int startPos, const TCHAR * def); void showCallTip(int startPos, const TCHAR * def);
void getLine(int lineNumber, TCHAR * line, int lineBufferLen); void getLine(int lineNumber, TCHAR * line, int lineBufferLen);
generic_string getLine(int lineNumber);
void addText(int length, const char *buf); void addText(int length, const char *buf);
void insertNewLineAboveCurrentLine(); void insertNewLineAboveCurrentLine();

Loading…
Cancel
Save