summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Groman <tgroman@nuegia.net>2018-12-09 22:04:00 -0800
committerThomas Groman <tgroman@nuegia.net>2018-12-09 22:04:00 -0800
commita8bd198035040b44849f68eed2fbf66fbd70c6ba (patch)
treecc30664f11af55d78ae824fb878b1eeddd313429
parent40229cf7b45675487b29bd5efe92eb72d9ffd676 (diff)
downloadMultiMC-a8bd198035040b44849f68eed2fbf66fbd70c6ba.tar
MultiMC-a8bd198035040b44849f68eed2fbf66fbd70c6ba.tar.gz
MultiMC-a8bd198035040b44849f68eed2fbf66fbd70c6ba.tar.lz
MultiMC-a8bd198035040b44849f68eed2fbf66fbd70c6ba.tar.xz
MultiMC-a8bd198035040b44849f68eed2fbf66fbd70c6ba.zip
unifinished commenting out of as much Google Analytics code as I could find
-rw-r--r--application/MultiMC.cpp24
1 files changed, 12 insertions, 12 deletions
diff --git a/application/MultiMC.cpp b/application/MultiMC.cpp
index 4236fbcf..7ea92a41 100644
--- a/application/MultiMC.cpp
+++ b/application/MultiMC.cpp
@@ -63,7 +63,6 @@
#include <DesktopServices.h>
#include <LocalPeer.h>
-#include <ganalytics.h>
#include <sys.h>
@@ -504,13 +503,13 @@ MultiMC::MultiMC(int &argc, char **argv) : QApplication(argc, argv)
// paste.ee API key
m_settings->registerSetting("PasteEEAPIKey", "multimc");
- if(!BuildConfig.ANALYTICS_ID.isEmpty())
+/* if(!BuildConfig.ANALYTICS_ID.isEmpty())
{
// Analytics
m_settings->registerSetting("Analytics", true);
m_settings->registerSetting("AnalyticsSeen", 0);
m_settings->registerSetting("AnalyticsClientID", QString());
- }
+*/ }
// Init page provider
{
@@ -669,7 +668,7 @@ MultiMC::MultiMC(int &argc, char **argv) : QApplication(argc, argv)
}
// Initialize analytics
- [this]()
+/* [this]()
{
const int analyticsVersion = 2;
if(BuildConfig.ANALYTICS_ID.isEmpty())
@@ -705,7 +704,7 @@ MultiMC::MultiMC(int &argc, char **argv) : QApplication(argc, argv)
m_analytics->enable();
qDebug() << "<> Initialized analytics with tid" << BuildConfig.ANALYTICS_ID;
- }();
+ }(); */
if(createSetupWizard())
{
@@ -732,7 +731,7 @@ bool MultiMC::createSetupWizard()
return true;
}
return false;
- }();
+/* }();
bool analyticsRequired = [&]()
{
if(BuildConfig.ANALYTICS_ID.isEmpty())
@@ -748,7 +747,7 @@ bool MultiMC::createSetupWizard()
return true;
}
return false;
- }();
+ }(); */
bool languageRequired = [&]()
{
if (settings()->get("Language").toString().isEmpty())
@@ -853,7 +852,7 @@ void MultiMC::messageReceived(const QString& message)
}
}
}
-
+/*
void MultiMC::analyticsSettingChanged(const Setting&, QVariant value)
{
if(!m_analytics)
@@ -869,7 +868,7 @@ void MultiMC::analyticsSettingChanged(const Setting&, QVariant value)
}
m_analytics->enable(enabled);
}
-
+*/
std::shared_ptr<TranslationsModel> MultiMC::translations()
{
return m_translations;
@@ -1115,14 +1114,14 @@ MainWindow* MultiMC::showMainWindow(bool minimized)
connect(m_mainWindow, &MainWindow::isClosing, this, &MultiMC::on_windowClose);
m_openWindows++;
}
- // FIXME: move this somewhere else...
+/* // FIXME: move this somewhere else...
if(m_analytics)
{
auto windowSize = m_mainWindow->size();
auto sizeString = QString("%1x%2").arg(windowSize.width()).arg(windowSize.height());
qDebug() << "Viewport size" << sizeString;
m_analytics->setViewportSize(sizeString);
- /*
+*/ /*
* cm1 = java min heap [MB]
* cm2 = java max heap [MB]
* cm3 = system RAM [MB]
@@ -1132,7 +1131,7 @@ MainWindow* MultiMC::showMainWindow(bool minimized)
* cd3 = system architecture
* cd4 = CPU architecture
*/
- QVariantMap customValues;
+/* QVariantMap customValues;
int min = m_settings->get("MinMemAlloc").toInt();
int max = m_settings->get("MaxMemAlloc").toInt();
if(min < max)
@@ -1169,6 +1168,7 @@ MainWindow* MultiMC::showMainWindow(bool minimized)
}
m_analytics->sendScreenView("Main Window", customValues);
}
+*/
return m_mainWindow;
}