diff options
author | nyamatongwe <unknown> | 2012-04-14 17:48:03 +1000 |
---|---|---|
committer | nyamatongwe <unknown> | 2012-04-14 17:48:03 +1000 |
commit | f2acb3885616d518f695e635689e9997e23b4c91 (patch) | |
tree | 91b0e141fdd9331daeb9e244bff662190d8ced95 /src | |
parent | 53dc13f86af71526f83d4f10ac3c78315cef436e (diff) | |
download | scintilla-mirror-f2acb3885616d518f695e635689e9997e23b4c91.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.cxx | 8 |
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; |