remove unused code in ScColumn

Specifically:
  ScColumn::DeleteCellNote(int)
  ScColumn::MoveListeners(SvtBroadcaster&, int)
  ScColumn::SetRawString(sc::ColumnBlockPosition&, int,
                         rtl::OUString const&, bool)

Change-Id: I34ec659bce7ae18cc3e9d0e27fcd138bc64201b0
This commit is contained in:
Noel Grandin
2014-02-26 13:19:57 +02:00
parent b709688cae
commit 2d257fa778
4 changed files with 1 additions and 45 deletions

View File

@@ -303,7 +303,6 @@ public:
void SetRawString( SCROW nRow, const OUString& rStr, bool bBroadcast = true );
void SetRawString( SCROW nRow, const svl::SharedString& rStr, bool bBroadcast = true );
void SetRawString( sc::ColumnBlockPosition& rBlockPos, SCROW nRow, const OUString& rStr, bool bBroadcast = true );
void SetRawString( sc::ColumnBlockPosition& rBlockPos, SCROW nRow, const svl::SharedString& rStr, bool bBroadcast = true );
void SetValue( SCROW nRow, double fVal );
void SetValues( SCROW nRow, const std::vector<double>& rVals );
@@ -458,7 +457,6 @@ public:
void EndListening( SvtListener& rLst, SCROW nRow );
void StartListening( sc::StartListeningContext& rCxt, SCROW nRow, SvtListener& rListener );
void EndListening( sc::EndListeningContext& rCxt, SCROW nRow, SvtListener& rListener );
void MoveListeners( SvtBroadcaster& rSource, SCROW nDestRow );
void StartAllListeners();
void StartNeededListeners(); // only for cells where NeedsListening()==true
void SetDirtyIfPostponed();
@@ -512,7 +510,6 @@ public:
ScPostIt* GetCellNote( SCROW nRow );
const ScPostIt* GetCellNote( SCROW nRow ) const;
void DeleteCellNotes( sc::ColumnBlockPosition& rBlockPos, SCROW nRow1, SCROW nRow2 );
void DeleteCellNote( SCROW nRow );
bool HasCellNotes() const;
void SetCellNote( SCROW nRow, ScPostIt* pNote);
bool IsNotesEmptyBlock(SCROW nStartRow, SCROW nEndRow) const;

View File

@@ -1859,10 +1859,7 @@ void ScColumn::SetCellNote(SCROW nRow, ScPostIt* pNote)
//pNote->UpdateCaptionPos(ScAddress(nCol, nRow, nTab)); // TODO notes usefull ? slow import with many notes
maCellNotes.set(nRow, pNote);
}
void ScColumn::DeleteCellNote(SCROW nRow)
{
maCellNotes.set_empty(nRow, nRow);
}
void ScColumn::DeleteCellNotes( sc::ColumnBlockPosition& rBlockPos, SCROW nRow1, SCROW nRow2 )
{
rBlockPos.miCellNotePos =
@@ -2946,31 +2943,6 @@ void ScColumn::StartListening( SvtListener& rLst, SCROW nRow )
startListening(maBroadcasters, aPos.first, aPos.second, nRow, rLst);
}
void ScColumn::MoveListeners( SvtBroadcaster& rSource, SCROW nDestRow )
{
// Move listeners from the source position to the destination position.
if (!rSource.HasListeners())
// No listeners to relocate. Bail out.
return;
// See if the destination position already has a broadcaster, if not, create one.
SvtBroadcaster* pBC = GetBroadcaster(nDestRow);
if (!pBC)
{
pBC = new SvtBroadcaster;
maBroadcasters.set(nDestRow, pBC);
}
SvtBroadcaster::ListenersType& rListeners = rSource.GetAllListeners();
SvtBroadcaster::ListenersType::iterator it = rListeners.begin(), itEnd = rListeners.end();
for (; it != itEnd; ++it)
{
SvtListener& rLst = **it;
rLst.StartListening(*pBC);
rLst.EndListening(rSource);
}
}
void ScColumn::EndListening( SvtListener& rLst, SCROW nRow )
{
SvtBroadcaster* pBC = GetBroadcaster(nRow);

View File

@@ -2249,16 +2249,6 @@ void ScColumn::SetRawString( SCROW nRow, const svl::SharedString& rStr, bool bBr
BroadcastNewCell(nRow);
}
void ScColumn::SetRawString(
sc::ColumnBlockPosition& rBlockPos, SCROW nRow, const OUString& rStr, bool bBroadcast )
{
svl::SharedString aSS = pDocument->GetSharedStringPool().intern(rStr);
if (!aSS.getData())
return;
SetRawString(rBlockPos, nRow, aSS, bBroadcast);
}
void ScColumn::SetRawString(
sc::ColumnBlockPosition& rBlockPos, SCROW nRow, const svl::SharedString& rStr, bool bBroadcast )
{

View File

@@ -68,9 +68,6 @@ ScCellValue::hasString() const
ScCellValue::set(ScFormulaCell const&)
ScCollection::IndexOf(ScDataObject*) const
ScColorScaleEntry::UpdateMoveTab(short, short, short)
ScColumn::DeleteCellNote(int)
ScColumn::MoveListeners(SvtBroadcaster&, int)
ScColumn::SetRawString(sc::ColumnBlockPosition&, int, rtl::OUString const&, bool)
ScDocument::CreateFormatTable() const
ScExtIButton::GetSelected() const
ScVbaFormat<ooo::vba::excel::XStyle>::getAddIndent()