1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-20 01:14:20 +00:00

Projucer: Remove user login and license check code

This commit is contained in:
Oliver James 2024-06-04 09:58:09 +01:00
parent fcaaf38c58
commit 7306fe1789
31 changed files with 108 additions and 2007 deletions

View file

@ -122,9 +122,6 @@ Project::Project (const File& f)
auto& app = ProjucerApplication::getApp();
if (! app.isRunningCommandLine)
app.getLicenseController().addListener (this);
app.getJUCEPathModulesList().addListener (this);
app.getUserPathsModulesList().addListener (this);
@ -144,9 +141,6 @@ Project::~Project()
app.openDocumentManager.closeAllDocumentsUsingProjectWithoutSaving (*this);
if (! app.isRunningCommandLine)
app.getLicenseController().removeListener (this);
app.getJUCEPathModulesList().removeListener (this);
app.getUserPathsModulesList().removeListener (this);
}
@ -191,8 +185,6 @@ void Project::updateCompanyNameDependencies()
pluginARAFactoryIDValue.setDefault (getDefaultARAFactoryIDString());
pluginARAArchiveIDValue.setDefault (getDefaultARADocumentArchiveID());
pluginManufacturerValue.setDefault (getDefaultPluginManufacturerString());
updateLicenseWarning();
}
void Project::updateWebsiteDependencies()
@ -705,8 +697,6 @@ Result Project::loadDocument (const File& file)
setChangedFlag (false);
updateLicenseWarning();
return Result::ok();
}
@ -814,19 +804,6 @@ bool Project::isSaveAndExportDisabled() const
&& isFileModificationCheckPending();
}
void Project::updateLicenseWarning()
{
if (ProjucerApplication::getApp().isRunningCommandLine)
return;
auto currentLicenseState = ProjucerApplication::getApp().getLicenseController().getCurrentState();
if (currentLicenseState.isPersonalOrNone() || currentLicenseState.isOldLicense())
addProjectMessage (ProjectMessages::Ids::personalLicense, {});
else
removeProjectMessage (ProjectMessages::Ids::personalLicense);
}
void Project::updateJUCEPathWarning()
{
if (ProjucerApplication::getApp().shouldPromptUserAboutIncorrectJUCEPath()
@ -978,11 +955,6 @@ void Project::updateModuleNotFoundWarning (bool showWarning)
removeProjectMessage (ProjectMessages::Ids::moduleNotFound);
}
void Project::licenseStateChanged()
{
updateLicenseWarning();
}
void Project::changeListenerCallback (ChangeBroadcaster*)
{
updateJUCEPathWarning();