OSDN Git Service

Remove unused member variable (bool m_readbom) from Uni*File.
authorKimmo Varis <kimmov@gmail.com>
Sun, 27 Jan 2008 22:15:16 +0000 (22:15 +0000)
committerKimmo Varis <kimmov@gmail.com>
Sun, 27 Jan 2008 22:15:16 +0000 (22:15 +0000)
Src/Common/UniFile.cpp
Src/Common/UniFile.h

index 83a1e74..5865827 100644 (file)
@@ -49,7 +49,6 @@ void UniLocalFile::Clear()
        m_filepath = _T("");
        m_filename = _T("");
        m_lineno = -1;
-       m_readbom = false;
        m_unicoding = ucr::NONE;
        m_charsize = 1;
        m_codepage = getDefaultCodepage();
@@ -303,7 +302,6 @@ bool UniMemFile::ReadBom()
                        break;
        }
 
-       m_readbom = true;
        m_bom = bom;
        m_current = m_data;
        return unicode;
@@ -669,7 +667,6 @@ void UniStdioFile::Close()
        // preserve m_filename
        m_data = 0;
        m_lineno = -1;
-       m_readbom = false;
        // preserve m_unicoding
        // preserve m_charsize
        // preserve m_codepage
@@ -808,7 +805,6 @@ bool UniStdioFile::ReadBom()
 
        delete[] buff;
        fseek(m_fp, (long)m_data, SEEK_SET);
-       m_readbom = true;
        m_bom = bom;
        return unicode;
 }
index 6378430..cce1534 100644 (file)
@@ -107,7 +107,6 @@ protected:
        String m_filename;
        int m_lineno; // current 0-based line of m_current
        UniError m_lastError;
-       bool m_readbom; // whether have tested for BOM
        int m_unicoding; // enum UNICODESET in unicoder.h
        int m_charsize; // 2 for UCS-2, else 1
        int m_codepage; // only valid if m_unicoding==ucr::NONE;