Kaydet (Commit) 2ab73c38 authored tarafından Caolán McNamara's avatar Caolán McNamara

callcatcher: update unused code

pleasing cleanup of whacky ScRawToken::sbyteOffset, etc.

Change-Id: I5ad97f8dab7c5dc9d5f0286bf606b619126c22c9
üst 93b9a238
......@@ -69,7 +69,6 @@ public:
bool operator!=( const MapMode& rMapMode ) const
{ return !(MapMode::operator==( rMapMode )); }
bool IsDefault() const;
bool IsSameInstance( const MapMode& rMapMode ) const;
friend VCL_DLLPUBLIC SvStream& ReadMapMode( SvStream& rIStm, MapMode& rMapMode );
friend VCL_DLLPUBLIC SvStream& WriteMapMode( SvStream& rOStm, const MapMode& rMapMode );
......
......@@ -115,7 +115,6 @@ struct ScRawToken: private ScRawTokenBase
// Friends that use a temporary ScRawToken on the stack (and therefore need
// the private dtor) and know what they're doing..
friend class ScTokenArray;
static sal_uInt16 sbyteOffset();
public:
union {
double nValue;
......
......@@ -291,15 +291,6 @@ bool ScRawToken::IsValidReference() const
return false;
}
sal_uInt16 ScRawToken::sbyteOffset()
{
// offset of sbyte in ScRawToken
// offsetof(ScRawToken, sbyte) gives a warning with gcc, because ScRawToken is no POD
ScRawToken aToken;
return static_cast<sal_uInt16>( reinterpret_cast<char*>(&aToken.sbyte) - reinterpret_cast<char*>(&aToken) );
}
FormulaToken* ScRawToken::CreateToken() const
{
#if OSL_DEBUG_LEVEL > 1
......
......@@ -35,32 +35,7 @@ namespace xls {
const sal_uInt16 BIFF_OBJ_INVALID_ID = 0;
// Model structures for BIFF OBJ record data
/** This structure contains line formatting attributes from an OBJ record. */
struct BiffObjLineModel
{
sal_uInt8 mnColorIdx; /// Index into color palette.
sal_uInt8 mnStyle; /// Line dash style.
sal_uInt8 mnWidth; /// Line width.
bool mbAuto; /// True = automatic line format.
explicit BiffObjLineModel();
};
/** This structure contains fill formatting attributes from an OBJ record. */
struct BiffObjFillModel
{
sal_uInt8 mnBackColorIdx; /// Index to color palette for background color.
sal_uInt8 mnPattColorIdx; /// Index to color palette for pattern foreground color.
sal_uInt8 mnPattern; /// Fill pattern.
bool mbAuto; /// True = automatic fill format.
explicit BiffObjFillModel();
};
// BIFF drawing objects
class BiffDrawingBase;
// BIFF drawing page
......
......@@ -64,24 +64,6 @@ const sal_uInt8 BIFF_OBJ_PATT_SOLID = 1;
} // namespace
// Model structures for BIFF OBJ record data
BiffObjLineModel::BiffObjLineModel() :
mnColorIdx( BIFF_OBJ_LINE_AUTOCOLOR ),
mnStyle( BIFF_OBJ_LINE_SOLID ),
mnWidth( BIFF_OBJ_LINE_HAIR ),
mbAuto( true )
{
}
BiffObjFillModel::BiffObjFillModel() :
mnBackColorIdx( BIFF_OBJ_LINE_AUTOCOLOR ),
mnPattColorIdx( BIFF_OBJ_FILL_AUTOCOLOR ),
mnPattern( BIFF_OBJ_PATT_SOLID ),
mbAuto( true )
{
}
// BIFF drawing page
BiffDrawingBase::BiffDrawingBase( const WorksheetHelper& rHelper, const Reference< XDrawPage >& rxDrawPage ) :
WorksheetHelper( rHelper ),
......
......@@ -10,8 +10,6 @@ OpenGLContext::renderToFile()
OpenGLContext::requestSingleBufferedRendering()
OpenGLContext::requestVirtualDevice()
OpenGLRender::CreateTextTexture(rtl::OUString const&, vcl::Font, long, com::sun::star::awt::Point, com::sun::star::awt::Size, long)
OpenGLSalBitmap::Draw(OpenGLContext&, SalTwoRect const&)
OpenGLTexture::OpenGLTexture()
OutputDevice::GetCanvas() const
OutputDevice::HasAlpha()
OutputDevice::LogicHeightToDeviceCoordinate(long) const
......
......@@ -277,11 +277,6 @@ const Fraction& MapMode::GetScaleX() const { return mpImplMapMode->maScaleX; }
const Fraction& MapMode::GetScaleY() const { return mpImplMapMode->maScaleY; }
bool MapMode::IsSameInstance( const MapMode& rMapMode ) const
{
return (mpImplMapMode == rMapMode.mpImplMapMode);
}
bool MapMode::IsSimple() const { return mpImplMapMode->mbSimple; }
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment