From b6272aec16732b184844bd2773f410f3c0a152dd Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Sun, 28 Oct 2001 04:39:23 +0000 Subject: Fixed Platform changes for GTK+ and hid most of the implementation of Surface. --- src/Document.cxx | 11 ----------- 1 file changed, 11 deletions(-) (limited to 'src/Document.cxx') diff --git a/src/Document.cxx b/src/Document.cxx index 213a72d6a..806f61f19 100644 --- a/src/Document.cxx +++ b/src/Document.cxx @@ -217,7 +217,6 @@ bool Document::IsCrLf(int pos) { return (cb.CharAt(pos) == '\r') && (cb.CharAt(pos + 1) == '\n'); } -#if PLAT_WIN bool Document::IsDBCS(int pos) { if (dbcsCodePage) { if (SC_CP_UTF8 == dbcsCodePage) { @@ -241,13 +240,6 @@ bool Document::IsDBCS(int pos) { } return false; } -#else -// PLAT_GTK or PLAT_WX -// TODO: support DBCS under GTK+ and WX -bool Document::IsDBCS(int) { - return false; -} -#endif int Document::LenChar(int pos) { if (IsCrLf(pos)) { @@ -300,7 +292,6 @@ int Document::MovePositionOutsideChar(int pos, int moveDir, bool checkLineEnd) { // Not between CR and LF -#if PLAT_WIN if (dbcsCodePage) { if (SC_CP_UTF8 == dbcsCodePage) { unsigned char ch = static_cast(cb.CharAt(pos)); @@ -327,7 +318,6 @@ int Document::MovePositionOutsideChar(int pos, int moveDir, bool checkLineEnd) { else atLeadByte = false; startLine++; - //Platform::DebugPrintf("DBCS %s\n", atlead ? "D" : "-"); } @@ -340,7 +330,6 @@ int Document::MovePositionOutsideChar(int pos, int moveDir, bool checkLineEnd) { } } } -#endif return pos; } -- cgit v1.2.3