Remove unused member function and variable.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8657 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Angus Leeming 2004-04-16 16:01:47 +00:00
parent 90b993e576
commit 7b54b9ca42
3 changed files with 5 additions and 19 deletions

View File

@ -1,3 +1,7 @@
2004-04-16 Angus Leeming <leeming@lyx.org>
* render_graphic.h (checksum_, hasFileChanged): unused, so removed.
2004-04-13 Angus Leeming <leeming@lyx.org>
* render_base.[Ch] (clone): now takes an InsetBase ptr to enable

View File

@ -39,7 +39,6 @@ using std::auto_ptr;
RenderGraphic::RenderGraphic(InsetBase const * inset)
: checksum_(0)
{
loader_.connect(boost::bind(&LyX::updateInset,
boost::cref(LyX::cref()), inset));
@ -50,8 +49,7 @@ RenderGraphic::RenderGraphic(RenderGraphic const & other,
InsetBase const * inset)
: RenderBase(other),
loader_(other.loader_),
params_(other.params_),
checksum_(0)
params_(other.params_)
{
loader_.connect(boost::bind(&LyX::updateInset,
boost::cref(LyX::cref()), inset));
@ -75,16 +73,6 @@ void RenderGraphic::update(graphics::Params const & params)
}
bool RenderGraphic::hasFileChanged() const
{
unsigned long const new_checksum = loader_.checksum();
bool const file_has_changed = checksum_ != new_checksum;
if (file_has_changed)
checksum_ = new_checksum;
return file_has_changed;
}
namespace {
bool displayGraphic(graphics::Params const & params)

View File

@ -33,9 +33,6 @@ public:
/// Refresh the info about which file to display and how to display it.
void update(lyx::graphics::Params const & params);
/// Is the stored checksum different to that of the graphics loader?
bool hasFileChanged() const;
/// equivalent to dynamic_cast
virtual RenderGraphic * asGraphic() { return this; }
@ -46,9 +43,6 @@ private:
/// The stored data.
lyx::graphics::Loader loader_;
lyx::graphics::Params params_;
/// Cached variable (not copied).
mutable unsigned long checksum_;
};