diff --git a/src/Guzzle/Http/Message/EntityEnclosingRequest.php b/src/Guzzle/Http/Message/EntityEnclosingRequest.php index 46bd5153..9d3262a8 100644 --- a/src/Guzzle/Http/Message/EntityEnclosingRequest.php +++ b/src/Guzzle/Http/Message/EntityEnclosingRequest.php @@ -39,7 +39,6 @@ class EntityEnclosingRequest extends Request implements EntityEnclosingRequestIn public function __construct($method, $url, $headers = array()) { $this->postFields = new QueryString(); - $this->postFields->setPrefix(''); parent::__construct($method, $url, $headers); } diff --git a/src/Guzzle/Http/QueryString.php b/src/Guzzle/Http/QueryString.php index 0b2c0431..8efbb930 100644 --- a/src/Guzzle/Http/QueryString.php +++ b/src/Guzzle/Http/QueryString.php @@ -24,11 +24,6 @@ class QueryString extends Collection */ protected $valueSeparator = '='; - /** - * @var string The query string prefix - */ - protected $prefix = '?'; - /** * @var bool URL encode fields and values? */ @@ -178,16 +173,6 @@ class QueryString extends Collection return $this->fieldSeparator; } - /** - * Get the query string prefix - * - * @return string - */ - public function getPrefix() - { - return $this->prefix; - } - /** * Get the query string value separator * @@ -252,20 +237,6 @@ class QueryString extends Collection return $this; } - /** - * Set the query string prefix - * - * @param string $prefix Prefix to use with the query string (e.g. '?') - * - * @return QueryString - */ - public function setPrefix($prefix) - { - $this->prefix = $prefix; - - return $this; - } - /** * Set the query string value separator * diff --git a/tests/Guzzle/Tests/Http/QueryStringTest.php b/tests/Guzzle/Tests/Http/QueryStringTest.php index 7eb2e7ef..b7e340c4 100644 --- a/tests/Guzzle/Tests/Http/QueryStringTest.php +++ b/tests/Guzzle/Tests/Http/QueryStringTest.php @@ -26,14 +26,6 @@ class QueryStringTest extends \Guzzle\Tests\GuzzleTestCase $this->assertEquals('&', $this->q->getFieldSeparator()); } - /** - * @covers Guzzle\Http\QueryString::getPrefix - */ - public function testGetPrefix() - { - $this->assertEquals('?', $this->q->getPrefix()); - } - /** * @covers Guzzle\Http\QueryString::getValueSeparator */ @@ -62,16 +54,6 @@ class QueryStringTest extends \Guzzle\Tests\GuzzleTestCase $this->assertEquals('/', $this->q->getFieldSeparator()); } - /** - * @covers Guzzle\Http\QueryString::setPrefix - * @covers Guzzle\Http\QueryString::getPrefix - */ - public function testSetPrefix() - { - $this->assertEquals($this->q, $this->q->setPrefix('')); - $this->assertEquals('', $this->q->getPrefix()); - } - /** * @covers Guzzle\Http\QueryString::setValueSeparator * @covers Guzzle\Http\QueryString::getValueSeparator