Commit 6a606076 authored by Aleix Pol Gonzalez's avatar Aleix Pol Gonzalez 🐧

Remove unused logic

parent aceb8528
......@@ -52,10 +52,11 @@
#include <KHelpMenu>
#include <KShortcutsDialog>
#include <KConcatenateRowsProxyModel>
#include <KSharedConfig>
#include <KConfigGroup>
// #include <KSwitchLanguageDialog>
// DiscoverCommon includes
#include <MuonDataSources.h>
#include <resources/AbstractResource.h>
#include <resources/ResourcesModel.h>
#include <resources/ResourcesProxyModel.h>
......@@ -228,16 +229,6 @@ void DiscoverMainWindow::openApplication(const QUrl& url)
Q_EMIT openUrl(url);
}
QUrl DiscoverMainWindow::featuredSource() const
{
return MuonDataSources::featuredSource();
}
QUrl DiscoverMainWindow::prioritaryFeaturedSource() const
{
return QUrl::fromLocalFile(QStandardPaths::locate(QStandardPaths::GenericDataLocation, QStringLiteral("plasmadiscover/featured.json")));
}
void DiscoverMainWindow::integrateObject(QObject* object)
{
if (!object) {
......
......@@ -35,8 +35,6 @@ class ResourcesProxyModel;
class DiscoverMainWindow : public QObject
{
Q_OBJECT
Q_PROPERTY(QUrl prioritaryFeaturedSource READ prioritaryFeaturedSource CONSTANT)
Q_PROPERTY(QUrl featuredSource READ featuredSource CONSTANT)
Q_PROPERTY(CompactMode compactMode READ compactMode WRITE setCompactMode NOTIFY compactModeChanged)
Q_PROPERTY(bool isRoot READ isRoot CONSTANT)
public:
......@@ -49,9 +47,6 @@ class DiscoverMainWindow : public QObject
QStringList modes() const;
void setupActions();
QUrl prioritaryFeaturedSource() const;
QUrl featuredSource() const;
CompactMode compactMode() const { return m_mode; }
void setCompactMode(CompactMode mode);
......
......@@ -44,7 +44,6 @@ if(AppStreamQt_FOUND)
)
endif()
kconfig_add_kcfg_files(discovercommon_SRCS GENERATE_MOC MuonDataSources.kcfgc)
add_library(DiscoverCommon ${discovercommon_SRCS})
target_link_libraries(DiscoverCommon
......
File=muondatasources.kcfg
ClassName=MuonDataSources
Singleton=true
Mutators=false
IncludeFiles=\"discovercommon_export.h\"
Visibility=DISCOVERCOMMON_EXPORT
......@@ -22,10 +22,10 @@
#include "PackageKitResource.h"
#include "PackageKitBackend.h"
#include "PackageKitMessages.h"
#include <MuonDataSources.h>
#include <KLocalizedString>
#include <PackageKit/Details>
#include <PackageKit/Daemon>
#include <QDebug>
PackageKitResource::PackageKitResource(QString packageName, QString summary, PackageKitBackend* parent)
: AbstractResource(parent)
......
<?xml version="1.0" encoding="UTF-8"?>
<kcfg xmlns="http://www.kde.org/standards/kcfg/1.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.kde.org/standards/kcfg/1.0
http://www.kde.org/standards/kcfg/1.0/kcfg.xsd" >
<kcfgfile name="muondatasourcesrc"/>
<group name="muon">
<entry name="RnRSource" type="Url"><default>https://reviews.ubuntu.com/reviews/api/1.0/</default><label>Server from which ratings and reviews are pulled.</label></entry>
<entry name="FeaturedSource" type="Url"><default>https://autoconfig.kde.org/discover/featured.json</default><label>Location of the featured applications data.</label></entry>
<entry name="ScreenshotsSource" type="Url"><default>http://screenshots.debian.net/</default><label>Where we pull our screenshots from.</label></entry>
</group>
</kcfg>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment