diff --git a/src/frontends/qt/GuiDocument.cpp b/src/frontends/qt/GuiDocument.cpp index 635a6d59a2..82b6c0ed51 100644 --- a/src/frontends/qt/GuiDocument.cpp +++ b/src/frontends/qt/GuiDocument.cpp @@ -3571,8 +3571,6 @@ void GuiDocument::getTableStyles() QString data = fn.left(fn.lastIndexOf(".lyx")); QString guiname = data; guiname = toqstr(translateIfPossible(qstring_to_ucs4(guiname.replace('_', ' ')))); - QString relpath = toqstr(makeRelPath(qstring_to_ucs4(fn), - qstring_to_ucs4(dir))); if (textLayoutModule->tableStyleCO->findData(data) == -1) textLayoutModule->tableStyleCO->addItem(guiname, data); } diff --git a/src/frontends/qt/GuiTabularCreate.cpp b/src/frontends/qt/GuiTabularCreate.cpp index d9eba4871b..d93e970469 100644 --- a/src/frontends/qt/GuiTabularCreate.cpp +++ b/src/frontends/qt/GuiTabularCreate.cpp @@ -63,8 +63,6 @@ void GuiTabularCreate::getFiles() QString data = fn.left(fn.lastIndexOf(".lyx")); QString guiname = data; guiname = toqstr(translateIfPossible(qstring_to_ucs4(guiname.replace('_', ' ')))); - QString relpath = toqstr(makeRelPath(qstring_to_ucs4(fn), - qstring_to_ucs4(dir))); if (styleCO->findData(data) == -1) styleCO->addItem(guiname, data); }