From 8b2018d41ba2e75691537d64771bd3651c309cf6 Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Fri, 19 Apr 2013 20:33:00 +1000 Subject: Remove unused methods. --- src/Document.cxx | 36 ------------------------------------ 1 file changed, 36 deletions(-) (limited to 'src/Document.cxx') diff --git a/src/Document.cxx b/src/Document.cxx index 7eef844ee..d62dd64e0 100644 --- a/src/Document.cxx +++ b/src/Document.cxx @@ -1050,11 +1050,6 @@ bool Document::InsertCString(int position, const char *s) { return InsertString(position, s, static_cast(s ? strlen(s) : 0)); } -void Document::ChangeChar(int pos, char ch) { - DeleteChars(pos, 1); - InsertChar(pos, ch); -} - void Document::DelChar(int pos) { DeleteChars(pos, LenChar(pos)); } @@ -1667,25 +1662,6 @@ int Document::LinesTotal() const { return cb.Lines(); } -void Document::ChangeCase(Range r, bool makeUpperCase) { - for (int pos = r.start; pos < r.end;) { - int len = LenChar(pos); - if (len == 1) { - char ch = CharAt(pos); - if (makeUpperCase) { - if (IsLowerCase(ch)) { - ChangeChar(pos, static_cast(MakeUpperCase(ch))); - } - } else { - if (IsUpperCase(ch)) { - ChangeChar(pos, static_cast(MakeLowerCase(ch))); - } - } - } - pos += len; - } -} - void Document::SetDefaultCharClasses(bool includeWordClass) { charClass.SetDefaultCharClasses(includeWordClass); } @@ -1821,10 +1797,6 @@ void Document::MarginSetStyles(int line, const unsigned char *styles) { NotifyModified(DocModification(SC_MOD_CHANGEMARGIN, LineStart(line), 0, 0, 0, line)); } -int Document::MarginLength(int line) const { - return static_cast(perLineData[ldMargin])->Length(line); -} - void Document::MarginClearAll() { int maxEditorLine = LinesTotal(); for (int l=0; l(perLineData[ldMargin])->ClearAll(); } -bool Document::AnnotationAny() const { - return static_cast(perLineData[ldAnnotation])->AnySet(); -} - StyledText Document::AnnotationStyledText(int line) { LineAnnotation *pla = static_cast(perLineData[ldAnnotation]); return StyledText(pla->Length(line), pla->Text(line), @@ -1866,10 +1834,6 @@ void Document::AnnotationSetStyles(int line, const unsigned char *styles) { } } -int Document::AnnotationLength(int line) const { - return static_cast(perLineData[ldAnnotation])->Length(line); -} - int Document::AnnotationLines(int line) const { return static_cast(perLineData[ldAnnotation])->Lines(line); } -- cgit v1.2.3