Commit c0f2c162 authored by Jeremy Mikola's avatar Jeremy Mikola

Remove unused Collection constants and methods

parent 9b4d0ef2
......@@ -43,9 +43,6 @@ class Collection
//self::QUERY_FLAG_TAILABLE_CURSOR | self::QUERY_FLAG_AWAIT_DATA;
const CURSOR_TYPE_TAILABLE_AWAIT = 0x22;
const FIND_ONE_AND_RETURN_BEFORE = 0x01;
const FIND_ONE_AND_RETURN_AFTER = 0x02;
protected $manager;
protected $ns;
protected $wc;
......@@ -838,19 +835,6 @@ class Collection
return $this->manager->executeBulkWrite($this->ns, $bulk, $this->wc);
}
/**
* Internal helper for throwing an exception with error message
* @internal
*/
final protected function _generateCommandException($doc)
{
if ($doc["errmsg"]) {
return new RuntimeException($doc["errmsg"]);
}
var_dump($doc);
return new RuntimeException("FIXME: Unknown error");
}
/**
* Constructs the Query Wire Protocol field 'flags' based on $options
* provided to other helpers
......@@ -871,17 +855,6 @@ class Collection
return $flags;
}
/**
* Internal helper for running a command
* @internal
*/
final protected function _runCommand($dbname, array $cmd, ReadPreference $rp = null)
{
//var_dump(\BSON\toJSON(\BSON\fromArray($cmd)));
$command = new Command($cmd);
return $this->manager->executeCommand($dbname, $command, $rp);
}
/**
* Internal helper for replacing/updating one/many documents
* @internal
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment