@@ -2,29 +2,21 @@ #import "PGConnectionFailedException.h" #import "PGCommandFailedException.h" @implementation PGConnection +@synthesize parameters = _parameters; + - (void)dealloc { [_parameters release]; [self close]; [super dealloc]; } -- (void)setParameters: (OFDictionary*)parameters -{ - OF_SETTER(_parameters, parameters, YES, YES) -} - -- (OFDictionary*)parameters -{ - OF_GETTER(_parameters, YES) -} - - (void)connect { OFAutoreleasePool *pool = [[OFAutoreleasePool alloc] init]; OFEnumerator *keyEnumerator = [_parameters keyEnumerator]; OFEnumerator *objectEnumerator = [_parameters objectEnumerator];