fix: remove as not planned

This commit is contained in:
ZavaruKitsu 2024-02-04 03:02:10 +03:00
parent 2729fee0ac
commit a3f4185b45
5 changed files with 1 additions and 50 deletions

View file

@ -114,8 +114,6 @@ PRIVATE
ayu/utils/telegram_helpers.h
ayu/utils/windows_utils.cpp
ayu/utils/windows_utils.h
ayu/ui/ayu_lottie.cpp
ayu/ui/ayu_lottie.h
ayu/ui/ayu_assets.cpp
ayu/ui/ayu_assets.h
ayu/ui/utils/ayu_profile_values.cpp

View file

@ -7,8 +7,6 @@
#include "ayu_infra.h"
#include "ayu_lang.h"
#include "ayu/ayu_lottie.h"
#include "ayu/ui/ayu_lottie.h"
#include "ayu/database/ayu_database.h"
#include "lang/lang_instance.h"
#include "ayu/ayu_settings.h"
@ -28,11 +26,6 @@ void initLang()
CustomLangPack::currentInstance()->fetchCustomLangPack(langPackId, langPackBaseId);
}
void initLottie()
{
AyuUi::setLottieImpl(std::make_shared<AyuUi::AyuLottieImpl>());
}
void initDatabase()
{
AyuDatabase::initialize();
@ -49,7 +42,6 @@ void initFonts()
void init()
{
initLang();
initLottie();
initFonts();
initDatabase();
}

View file

@ -1,19 +0,0 @@
// This is the source code of AyuGram for Desktop.
//
// We do not and cannot prevent the use of our code,
// but be respectful and credit the original author.
//
// Copyright @Radolyn, 2023
#include "ayu_lottie.h"
namespace AyuUi
{
std::unique_ptr<Lottie::Icon> AyuLottieImpl::getLottie(const QString &text)
{
// todo: some kind of mapping
// Lottie::MakeIcon({.json = QString(), .sizeOverride = {24, 24}});
return nullptr;
}
}

View file

@ -1,20 +0,0 @@
// This is the source code of AyuGram for Desktop.
//
// We do not and cannot prevent the use of our code,
// but be respectful and credit the original author.
//
// Copyright @Radolyn, 2023
#pragma once
#include "lottie/lottie_icon.h"
#include "ayu/ayu_lottie.h"
namespace AyuUi
{
class AyuLottieImpl : public AyuLottie
{
std::unique_ptr<Lottie::Icon> getLottie(const QString &text) override;
};
}

@ -1 +1 @@
Subproject commit d0b0f2aee9dac4cd13cf8a13bf4614dcd13bdd5b
Subproject commit a7dfd383490e9e3a3a83b2b920d34f6409d37eee