From e32d2ac2be5cced19bc64ed267d9d4450afbd471 Mon Sep 17 00:00:00 2001 From: Holger Hans Peter Freyther Date: Fri, 24 Jul 2015 18:39:11 +0200 Subject: [PATCH] Use prereq and such instead of manual dependency loading With PackageLoader loadPackageFromFile we do not need to load the package in the source file. --- callagent/MGCPCallAgent.st | 4 ---- callagent/MGCPLogArea.st | 2 -- callagent/MGCPTransaction.st | 4 ---- grammar/MGCPGrammar.st | 2 -- grammar/MGCPGrammarTest.st | 2 -- package.xml | 4 ++++ 6 files changed, 4 insertions(+), 14 deletions(-) diff --git a/callagent/MGCPCallAgent.st b/callagent/MGCPCallAgent.st index e4ef808..d577725 100644 --- a/callagent/MGCPCallAgent.st +++ b/callagent/MGCPCallAgent.st @@ -16,10 +16,6 @@ along with this program. If not, see . " -PackageLoader - fileInPackage: 'Sockets'; - fileInPackage: 'OsmoNetwork'. - Object subclass: MGCPCallAgentBase [ | net trunks sem addr port | diff --git a/callagent/MGCPLogArea.st b/callagent/MGCPLogArea.st index abdd439..4811423 100644 --- a/callagent/MGCPLogArea.st +++ b/callagent/MGCPLogArea.st @@ -16,8 +16,6 @@ along with this program. If not, see . " -PackageLoader fileInPackage: #OsmoLogging. - Osmo.LogArea subclass: MGCPLogArea [ diff --git a/callagent/MGCPTransaction.st b/callagent/MGCPTransaction.st index cd994ec..3ecb3f4 100644 --- a/callagent/MGCPTransaction.st +++ b/callagent/MGCPTransaction.st @@ -16,10 +16,6 @@ along with this program. If not, see . " -PackageLoader - fileInPackage: 'Sockets'; - fileInPackage: 'OsmoCore'. - Object subclass: MGCPTransactionBase [ | callagent t_retransmit t_expire t_remove sem | diff --git a/grammar/MGCPGrammar.st b/grammar/MGCPGrammar.st index 936419a..3a97058 100644 --- a/grammar/MGCPGrammar.st +++ b/grammar/MGCPGrammar.st @@ -16,8 +16,6 @@ along with this program. If not, see . " -PackageLoader fileInPackage: 'PetitParser'. - PP.PPCompositeParser subclass: MGCPGrammar [ | MGCPMessage EOL One_WSP MGCPMessage MGCPCommandLine MGCPVerb transaction_id endpointName MGCPversion MGCPParameter MGCPCommand ParameterValue SDPRecord SDPLine SDPinformation MGCPResponseLine responseCode responseString packageName wordParser | diff --git a/grammar/MGCPGrammarTest.st b/grammar/MGCPGrammarTest.st index 4e91e63..4a9acff 100644 --- a/grammar/MGCPGrammarTest.st +++ b/grammar/MGCPGrammarTest.st @@ -16,8 +16,6 @@ along with this program. If not, see . " -PackageLoader fileInPackage: 'PetitParserTests'. - PP.PPCompositeParserTest subclass: MGCPGrammarTest [ diff --git a/package.xml b/package.xml index ffcf9bd..5c02b35 100644 --- a/package.xml +++ b/package.xml @@ -2,8 +2,11 @@ OsmoMGCP Osmo + Sockets + PetitParser OsmoLogging OsmoCore + OsmoNetwork grammar/MGCPGrammar.st callagent/MGCPCallAgent.st @@ -16,6 +19,7 @@ callagent/MGCPParser.st + PetitParserTests Osmo.MGCPGrammarTest Osmo.MGCPCommandTest Osmo.MGCPEndpointAllocTest