OSDN Git Service

Remove unused variable
authorsdottaka <none@none>
Sat, 12 Jan 2013 13:54:53 +0000 (22:54 +0900)
committersdottaka <none@none>
Sat, 12 Jan 2013 13:54:53 +0000 (22:54 +0900)
Src/FileTextEncoding.cpp
Src/FileTextEncoding.h
Src/codepage_detect.cpp

index 741468b..208b47b 100644 (file)
@@ -24,7 +24,6 @@ void FileTextEncoding::Clear()
        m_unicoding = ucr::NONE;
        m_bom = false;
        m_guessed = false;
-       m_binary = false;
 }
 
 /**
index 2cde370..5ad19a0 100644 (file)
@@ -20,7 +20,6 @@ struct FileTextEncoding
        ucr::UNICODESET m_unicoding; /**< Unicode encoding. */
        bool m_bom; /**< Unicode byte marker */
        bool m_guessed; /**< Whether encoding was guessed from content */
-       bool m_binary;
 
        FileTextEncoding();
        void Clear();
index 6c427d2..8bbcb36 100644 (file)
@@ -251,7 +251,6 @@ FileTextEncoding GuessCodepageEncoding(const String& filepath, int guessEncoding
        encoding.SetCodepage(ucr::getDefaultCodepage());
        encoding.m_bom = false;
        encoding.m_guessed = false;
-       encoding.m_binary = false;
        switch (fi.nByteOrder)
        {
        case 8 + 2 + 0:
@@ -271,8 +270,6 @@ FileTextEncoding GuessCodepageEncoding(const String& filepath, int guessEncoding
                break;
        default:
                encoding.m_bom = false;
-               if (memchr(fi.pImage, 0, fi.cbImage))
-                       encoding.m_binary = true;
                break;
        }
        if (fi.nByteOrder < 4 && guessEncodingType != 0)