diff options
author | Tom Sepez <tsepez@chromium.org> | 2015-04-21 15:09:19 -0700 |
---|---|---|
committer | Tom Sepez <tsepez@chromium.org> | 2015-04-21 15:09:19 -0700 |
commit | b014ca072970973164e0b3d244fbd8863dff2738 (patch) | |
tree | 280718986aae2b6704b89a57c8f2847bb30ed396 /core/include/fxcrt/fx_string.h | |
parent | ba920211c9569a38a4494398ac271a32098d81da (diff) | |
download | pdfium-b014ca072970973164e0b3d244fbd8863dff2738.tar.xz |
Kill CFX_StringBufTemplate.
It's unused.
R=thestig@chromium.org
Review URL: https://codereview.chromium.org/1098203002
Diffstat (limited to 'core/include/fxcrt/fx_string.h')
-rw-r--r-- | core/include/fxcrt/fx_string.h | 56 |
1 files changed, 0 insertions, 56 deletions
diff --git a/core/include/fxcrt/fx_string.h b/core/include/fxcrt/fx_string.h index df7dd0c762..70f64932c8 100644 --- a/core/include/fxcrt/fx_string.h +++ b/core/include/fxcrt/fx_string.h @@ -428,62 +428,6 @@ inline CFX_ByteString operator + (FX_BSTR str1, const CFX_ByteString& str2) { return CFX_ByteString(str1, str2); } -class CFX_StringBufBase -{ -public: - - CFX_StringBufBase(FX_STRSIZE limit) - { - m_Size = 0; - m_Limit = limit; - } - - FX_CHAR* GetPtr() const - { - return (FX_CHAR*)(this + 1); - } - - FX_STRSIZE GetSize() const - { - return m_Size; - } - - void Empty() - { - m_Size = 0; - } - - void Copy(FX_BSTR str); - - void Append(FX_BSTR str); - - void Append(int i, FX_DWORD flags = 0); - - CFX_ByteStringC GetStringC() const - { - return CFX_ByteStringC((FX_CHAR*)(this + 1), m_Size); - } - - CFX_ByteString GetString() const - { - return CFX_ByteString((FX_CHAR*)(this + 1), m_Size); - } -protected: - - FX_STRSIZE m_Limit; - - FX_STRSIZE m_Size; -}; -template<FX_STRSIZE limit> -class CFX_StringBufTemplate : public CFX_StringBufBase -{ -public: - - CFX_StringBufTemplate() : CFX_StringBufBase(limit) {} - - FX_CHAR m_Buffer[limit]; -}; -typedef CFX_StringBufTemplate<256> CFX_StringBuf256; class CFX_WideStringC { public: |