Privatised functions that need not be public

This commit is contained in:
Tristan B. Kildaire 2020-04-28 18:05:47 +02:00
parent c12beb8322
commit ed1f995b3c
1 changed files with 3 additions and 6 deletions

View File

@ -29,10 +29,7 @@ void main()
writeln("fdhjf he do be vibing though");
}
JSONValue getConfig(string configurationFilePath)
private JSONValue getConfig(string configurationFilePath)
{
/* TODO: Open the file here */
File configFile;
@ -57,7 +54,7 @@ JSONValue getConfig(string configurationFilePath)
return config;
}
BesterListener[] getListeners(BesterServer server, JSONValue networkBlock)
private BesterListener[] getListeners(BesterServer server, JSONValue networkBlock)
{
BesterListener[] listeners;
@ -89,7 +86,7 @@ BesterListener[] getListeners(BesterServer server, JSONValue networkBlock)
return listeners;
}
void startServer(string configurationFilePath)
private void startServer(string configurationFilePath)
{
/* The server configuration */
JSONValue serverConfiguration = getConfig(configurationFilePath);