diff options
| author | Zufu Liu <unknown> | 2020-04-30 20:22:36 +1000 |
|---|---|---|
| committer | Zufu Liu <unknown> | 2020-04-30 20:22:36 +1000 |
| commit | 7f1ab5e49c1eb59435c4cff99f4cff90b9e94945 (patch) | |
| tree | 5d43430e914629818388396d42c1be86233920ff | |
| parent | b234bfefb654bc13420698e87f5c5a83c3bb9662 (diff) | |
| download | scintilla-mirror-7f1ab5e49c1eb59435c4cff99f4cff90b9e94945.tar.gz | |
Clean up - make local function static and remove code that has no effect.
| -rw-r--r-- | lexers/LexMMIXAL.cxx | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lexers/LexMMIXAL.cxx b/lexers/LexMMIXAL.cxx index 49b639dd2..1e0552075 100644 --- a/lexers/LexMMIXAL.cxx +++ b/lexers/LexMMIXAL.cxx @@ -33,7 +33,7 @@ static inline bool IsAWordChar(const int ch) { return (ch < 0x80) && (isalnum(ch) || ch == ':' || ch == '_'); } -inline bool isMMIXALOperator(char ch) { +static inline bool isMMIXALOperator(char ch) { if (IsASCII(ch) && isalnum(ch)) return false; if (ch == '+' || ch == '-' || ch == '|' || ch == '^' || @@ -85,8 +85,6 @@ static void ColouriseMMIXALDoc(Sci_PositionU startPos, Sci_Position length, int } else if (sc.state == SCE_MMIXAL_NUMBER) { // NUMBER if (!isdigit(sc.ch)) { if (IsAWordChar(sc.ch)) { - char s[100]; - sc.GetCurrent(s, sizeof(s)); sc.ChangeState(SCE_MMIXAL_REF); sc.SetState(SCE_MMIXAL_REF); } else { |
