OSDN Git Service

Remove unused function
authorsdottaka <none@none>
Sat, 19 Oct 2013 11:26:32 +0000 (20:26 +0900)
committersdottaka <none@none>
Sat, 19 Oct 2013 11:26:32 +0000 (20:26 +0900)
--HG--
branch : stable

Src/MergeDoc.cpp

index 79db71f..7170904 100644 (file)
@@ -87,7 +87,6 @@ static LPCTSTR crlfs[] =
 };
 
 static void SaveBuffForDiff(CDiffTextBuffer & buf, LPCTSTR filepath);
-static void UnescapeControlChars(CString &s);
 
 /////////////////////////////////////////////////////////////////////////////
 // CMergeDoc
@@ -1459,35 +1458,6 @@ void CMergeDoc::SetCurrentDiff(int nDiff)
                m_nCurDiff = -1;
 }
 
-/*
- * @brief Unescape control characters.
- * @param [in,out] s Line of text excluding eol chars.
- */
-static void UnescapeControlChars(CString &s)
-{
-       LPTSTR p = s.LockBuffer();
-       LPTSTR q = p;
-       while ((*p = *q) != _T('\0'))
-       {
-               ++q;
-               // Is it the leadin character?
-               if (*p == _T('\x0F'))
-               {
-                       LPTSTR r = q;
-                       // Expect a hexadecimal number...
-                       long ordinal = (TCHAR)_tcstol(q, &r, 16);
-                       // ...followed by the leadout character.
-                       if (*r == _T('\\'))
-                       {
-                               *p = (TCHAR)ordinal;
-                               q = r + 1;
-                       }
-               }
-               ++p;
-       }
-       s.ReleaseBuffer(p - s);
-}
-
 /**
  * @brief Take care of rescanning document.
  *