mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 01:59:02 +00:00
Fixup 145af7c2
: remove unused method
TextMetrics::firstVisible(), introduced in this commit, is actually unused.
This commit is contained in:
parent
54b77166b3
commit
8bc3799b35
@ -131,17 +131,6 @@ pair<pit_type, ParagraphMetrics const *> TextMetrics::first() const
|
||||
}
|
||||
|
||||
|
||||
pair<pit_type, ParagraphMetrics const *> TextMetrics::firstVisible() const
|
||||
{
|
||||
// This only works in the main text, I think (bottom > 0)
|
||||
LASSERT(text_->isMainText(), return first());
|
||||
auto it = find_if(par_metrics_.begin(), par_metrics_.end(),
|
||||
[] (ParMetricsCache::value_type const & p) {
|
||||
return p.second.hasPosition() && p.second.bottom() > 0;
|
||||
});
|
||||
return make_pair(it->first, &it->second);
|
||||
}
|
||||
|
||||
pair<pit_type, ParagraphMetrics const *> TextMetrics::last() const
|
||||
{
|
||||
LBUFERR(!par_metrics_.empty());
|
||||
|
@ -50,8 +50,6 @@ public:
|
||||
///
|
||||
std::pair<pit_type, ParagraphMetrics const *> first() const;
|
||||
///
|
||||
std::pair<pit_type, ParagraphMetrics const *> firstVisible() const;
|
||||
///
|
||||
std::pair<pit_type, ParagraphMetrics const *> last() const;
|
||||
/// is this row the last in the text?
|
||||
bool isLastRow(Row const & row) const;
|
||||
|
Loading…
Reference in New Issue
Block a user