aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authornyamatongwe <devnull@localhost>2012-04-14 17:48:03 +1000
committernyamatongwe <devnull@localhost>2012-04-14 17:48:03 +1000
commit49881a5c750fb76222c8869804e79c766fdde62b (patch)
tree178f390ff15a5ce5c1c0efaf1b48df8a7ac32eda /src
parentff03c11dadbe31808500ec5412e70c06fb983026 (diff)
downloadscintilla-mirror-49881a5c750fb76222c8869804e79c766fdde62b.tar.gz
Remove isindentchar as it duplicated IsSpaceOrTab. Made IsSpaceOrTab static. Feature #3517596.
From Marko Njezic.
Diffstat (limited to 'src')
-rw-r--r--src/Document.cxx8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/Document.cxx b/src/Document.cxx
index 8e8d23059..98cb48fcf 100644
--- a/src/Document.cxx
+++ b/src/Document.cxx
@@ -687,7 +687,7 @@ bool SCI_METHOD Document::IsDBCSLeadByte(char ch) const {
return false;
}
-inline bool IsSpaceOrTab(int ch) {
+static inline bool IsSpaceOrTab(int ch) {
return ch == ' ' || ch == '\t';
}
@@ -1006,10 +1006,6 @@ void Document::DelCharBack(int pos) {
}
}
-static bool isindentchar(char ch) {
- return (ch == ' ') || (ch == '\t');
-}
-
static int NextTab(int pos, int tabSize) {
return ((pos / tabSize) + 1) * tabSize;
}
@@ -1069,7 +1065,7 @@ int Document::GetLineIndentPosition(int line) const {
return 0;
int pos = LineStart(line);
int length = Length();
- while ((pos < length) && isindentchar(cb.CharAt(pos))) {
+ while ((pos < length) && IsSpaceOrTab(cb.CharAt(pos))) {
pos++;
}
return pos;