mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-23 10:18:50 +00:00
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:
parent
90b993e576
commit
7b54b9ca42
@ -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>
|
2004-04-13 Angus Leeming <leeming@lyx.org>
|
||||||
|
|
||||||
* render_base.[Ch] (clone): now takes an InsetBase ptr to enable
|
* render_base.[Ch] (clone): now takes an InsetBase ptr to enable
|
||||||
|
@ -39,7 +39,6 @@ using std::auto_ptr;
|
|||||||
|
|
||||||
|
|
||||||
RenderGraphic::RenderGraphic(InsetBase const * inset)
|
RenderGraphic::RenderGraphic(InsetBase const * inset)
|
||||||
: checksum_(0)
|
|
||||||
{
|
{
|
||||||
loader_.connect(boost::bind(&LyX::updateInset,
|
loader_.connect(boost::bind(&LyX::updateInset,
|
||||||
boost::cref(LyX::cref()), inset));
|
boost::cref(LyX::cref()), inset));
|
||||||
@ -50,8 +49,7 @@ RenderGraphic::RenderGraphic(RenderGraphic const & other,
|
|||||||
InsetBase const * inset)
|
InsetBase const * inset)
|
||||||
: RenderBase(other),
|
: RenderBase(other),
|
||||||
loader_(other.loader_),
|
loader_(other.loader_),
|
||||||
params_(other.params_),
|
params_(other.params_)
|
||||||
checksum_(0)
|
|
||||||
{
|
{
|
||||||
loader_.connect(boost::bind(&LyX::updateInset,
|
loader_.connect(boost::bind(&LyX::updateInset,
|
||||||
boost::cref(LyX::cref()), inset));
|
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 {
|
namespace {
|
||||||
|
|
||||||
bool displayGraphic(graphics::Params const & params)
|
bool displayGraphic(graphics::Params const & params)
|
||||||
|
@ -33,9 +33,6 @@ public:
|
|||||||
/// Refresh the info about which file to display and how to display it.
|
/// Refresh the info about which file to display and how to display it.
|
||||||
void update(lyx::graphics::Params const & params);
|
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
|
/// equivalent to dynamic_cast
|
||||||
virtual RenderGraphic * asGraphic() { return this; }
|
virtual RenderGraphic * asGraphic() { return this; }
|
||||||
|
|
||||||
@ -46,9 +43,6 @@ private:
|
|||||||
/// The stored data.
|
/// The stored data.
|
||||||
lyx::graphics::Loader loader_;
|
lyx::graphics::Loader loader_;
|
||||||
lyx::graphics::Params params_;
|
lyx::graphics::Params params_;
|
||||||
|
|
||||||
/// Cached variable (not copied).
|
|
||||||
mutable unsigned long checksum_;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user