Repositories: Remove default repository URL constants.

Since automatic updates are enabled by default, these will already
be in the system repository settings.
This commit is contained in:
Augustin Cavalier 2017-12-16 13:08:09 -05:00
parent 8ea8a648f8
commit 77de2e81a1
2 changed files with 0 additions and 19 deletions

View File

@ -22,17 +22,6 @@ RepositoriesSettings::RepositoriesSettings()
status_t status = find_directory(B_USER_SETTINGS_DIRECTORY, &fFilePath);
if (status == B_OK)
status = fFilePath.Append(settingsFilename);
BEntry fileEntry(fFilePath.Path());
if (!fileEntry.Exists()) {
// Create default repos
BStringList nameList, urlList;
int32 count = (sizeof(kDefaultRepos) / sizeof(Repository));
for (int16 index = 0; index < count; index++) {
nameList.Add(kDefaultRepos[index].name);
urlList.Add(kDefaultRepos[index].url);
}
SetRepositories(nameList, urlList);
}
fInitStatus = status;
}

View File

@ -35,14 +35,6 @@ typedef struct {
} Repository;
static const Repository kDefaultRepos[] = {
{ "Haiku", "https://packages.haiku-os.org/haiku/master/" B_HAIKU_ABI_NAME
"/current"},
{ "HaikuPorts", "https://eu.hpkg.haiku-os.org/haikuports/master/repository/"
B_HAIKU_ABI_NAME "/current" }
};
// Message keys
#define key_frame "frame"
#define key_name "repo_name"