Remove legacy Integration::startFonts[Begin|End].

This commit is contained in:
John Preston 2021-04-20 16:29:42 +04:00
parent d07bee87cd
commit 98e3ba2c58
3 changed files with 0 additions and 18 deletions

View file

@ -36,12 +36,6 @@ void Integration::textActionsUpdated() {
void Integration::activationFromTopPanel() { void Integration::activationFromTopPanel() {
} }
void Integration::startFontsBegin() {
}
void Integration::startFontsEnd() {
}
QString Integration::timeFormat() { QString Integration::timeFormat() {
return u"hh:mm"_q; return u"hh:mm"_q;
} }

View file

@ -40,9 +40,6 @@ public:
virtual void textActionsUpdated(); virtual void textActionsUpdated();
virtual void activationFromTopPanel(); virtual void activationFromTopPanel();
virtual void startFontsBegin();
virtual void startFontsEnd();
[[nodiscard]] virtual QString timeFormat(); [[nodiscard]] virtual QString timeFormat();
[[nodiscard]] virtual std::shared_ptr<ClickHandler> createLinkHandler( [[nodiscard]] virtual std::shared_ptr<ClickHandler> createLinkHandler(

View file

@ -173,11 +173,6 @@ void StartFonts() {
style_InitFontsResource(); style_InitFontsResource();
const auto integrationExists = Ui::Integration::Exists();
if (integrationExists) {
Ui::Integration::Instance().startFontsBegin();
}
#ifndef DESKTOP_APP_USE_PACKAGED_FONTS #ifndef DESKTOP_APP_USE_PACKAGED_FONTS
bool areGood[FontTypesCount] = { false }; bool areGood[FontTypesCount] = { false };
for (auto i = 0; i != FontTypesCount; ++i) { for (auto i = 0; i != FontTypesCount; ++i) {
@ -227,10 +222,6 @@ void StartFonts() {
auto appFont = QApplication::font(); auto appFont = QApplication::font();
appFont.setStyleStrategy(QFont::PreferQuality); appFont.setStyleStrategy(QFont::PreferQuality);
QApplication::setFont(appFont); QApplication::setFont(appFont);
if (integrationExists) {
Ui::Integration::Instance().startFontsEnd();
}
} }
QString GetPossibleEmptyOverride(int32 flags) { QString GetPossibleEmptyOverride(int32 flags) {