X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FFontList.cpp;h=67fb8354b0617500c66cd4625398de501826b801;hb=04c0cce43e255eaf1350ceddee2b03585310bfdc;hp=9ccdfee55479be99d0dd85fafcf4d1da912b3dc7;hpb=75bfed55079cab6b73fbea6ce4ae3f10d1af3b91;p=lyx.git diff --git a/src/FontList.cpp b/src/FontList.cpp index 9ccdfee554..67fb8354b0 100644 --- a/src/FontList.cpp +++ b/src/FontList.cpp @@ -20,8 +20,6 @@ #include "FontList.h" -#include "support/lyxalgo.h" - using namespace std; namespace lyx { @@ -112,14 +110,6 @@ void FontList::decreasePosAfterPos(pos_type pos) } -void FontList::setRange(pos_type startpos, pos_type endpos, Font const & font) -{ - // FIXME: Optimize!!! - for (pos_type pos = startpos; pos != endpos; ++pos) - set(pos, font); -} - - void FontList::set(pos_type pos, Font const & font) { // No need to simplify this because it will disappear