summaryrefslogtreecommitdiff
path: root/lotuswordpro/source/filter/utbenvs.cxx
diff options
context:
space:
mode:
authorPovilas Kanapickas <povilas.kanapickas@gmail.com>2010-10-18 19:33:02 +0100
committerMichael Meeks <michael.meeks@novell.com>2010-10-18 19:33:02 +0100
commit42b0ace3fa39a2f672d2222ea57482258058d249 (patch)
tree89a2ec5bce3b142c21dfac67abb3dccd1b85a63b /lotuswordpro/source/filter/utbenvs.cxx
parentd5c6b69895b269ff46e8c45b8a1d1511f5aeee85 (diff)
remove non-compiled code
Diffstat (limited to 'lotuswordpro/source/filter/utbenvs.cxx')
-rw-r--r--lotuswordpro/source/filter/utbenvs.cxx121
1 files changed, 0 insertions, 121 deletions
diff --git a/lotuswordpro/source/filter/utbenvs.cxx b/lotuswordpro/source/filter/utbenvs.cxx
index 50ae0acfcd56..81da609b2264 100644
--- a/lotuswordpro/source/filter/utbenvs.cxx
+++ b/lotuswordpro/source/filter/utbenvs.cxx
@@ -164,128 +164,7 @@ LtcUtBenValueStream::LtcUtBenValueStream(pCBenValue pValue)
LtcUtBenValueStream::~LtcUtBenValueStream()
{
}
-#if 0 // Deleted by 2004-06-16
-UtError
-CUtBenValueStream::Open(UtBool /* OpenNew */, UtStrmOpenFlags /* Flags */)
-{
- cCurrentPosition = 0;
- return UtErr_OK;
-}
-
-UtError
-CUtBenValueStream::Close()
-{
- return UtErr_OK;
-}
-
-UtError
-CUtBenValueStream::Seek(long Offset, UtSeekMode Mode)
-{
- unsigned long NewPos;
-
- if (Mode == UtSeek_FromStart)
- NewPos = (unsigned long) Offset;
- else if (Mode == UtSeek_FromCurr)
- {
- if (Offset < 0 && cCurrentPosition < (unsigned long) -Offset)
- return UtErr_SeekError;
- NewPos = cCurrentPosition + Offset;
- }
- else if (Mode == UtSeek_FromEnd)
- {
- unsigned long ValueSize = cpValue->GetValueSize();
- if (Offset < 0 && ValueSize < (unsigned long) -Offset)
- return UtErr_SeekError;
- NewPos = ValueSize + Offset;
- }
- else
- {
- UT_ASSERT(! "Illegal seek");
- return UtErr_SeekError;
- }
-
- cCurrentPosition = NewPos;
- return UtErr_OK;
-}
-
-UtError
-CUtBenValueStream::GetPosition(unsigned long * pPosition)
-{
- *pPosition = cCurrentPosition;
- return UtErr_OK;
-}
-
-UtError
-CUtBenValueStream::GetSize(unsigned long * pSize)
-{
- *pSize = cpValue->GetValueSize();
- return UtErr_OK;
-}
-UtError
-CUtBenValueStream::Read(UtStrmDataPtr pBuffer, unsigned long MaxSize,
- unsigned long * pAmtRead)
-{
- unsigned long AmtLeft;
- GetAmountLeft(&AmtLeft);
-
- unsigned long AmtShouldRead = UtMin(MaxSize, AmtLeft);
-
- BenError Err = cpValue->ReadValueData(pBuffer, cCurrentPosition, MaxSize,
- pAmtRead);
- cCurrentPosition += *pAmtRead;
-
- return BenToUtError(Err);
-}
-
-UtError
-CUtBenValueStream::Write(UtConstStrmDataPtr pBuffer, unsigned long Size,
- unsigned long * pAmtWritten)
-{
- BenError Err;
-
- *pAmtWritten = 0;
-
- // IStream::Write semantics are that when write zero bytes, doesn't fill
- // in gap
- if (Size == 0)
- return UtErr_OK;
-
- // See if anybody exercies code below
- //UT_ASSERT(cCurrentPosition <= (long) cpValue->GetValueSize());
-
- // Fill out "gap" in data, if there is one, with nulls
- while (cCurrentPosition > cpValue->GetValueSize())
- if ((Err = cpValue->WriteValueData("", cpValue->GetValueSize(), 1,
- NULL)) != BenErr_OK)
- return BenToUtError(Err);
-
- unsigned long AmtWritten;
- Err = cpValue->WriteValueData(pBuffer, cCurrentPosition, Size,
- &AmtWritten);
-
- //UT_ASSERT(Size == AmtWritten);
-
- cCurrentPosition += AmtWritten;
-
- *pAmtWritten = AmtWritten;
-
- return BenToUtError(Err);
-}
-
-UtError
-CUtBenValueStream::TruncateSize(unsigned long Size)
-{
- return BenToUtError(cpValue->TruncateValueSize(Size));
-}
-
-UtError
-CUtBenValueStream::Flush()
-{
- return UtErr_OK;
-
-}
-#endif
} // end namespace OpenStormBento
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */