Skip to content

Commit ebc4ff1

Browse files
committed
Remove unused Collection constants and methods
1 parent b65cf80 commit ebc4ff1

File tree

1 file changed

+0
-27
lines changed

1 file changed

+0
-27
lines changed

src/Collection.php

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,6 @@ class Collection
4343
//self::QUERY_FLAG_TAILABLE_CURSOR | self::QUERY_FLAG_AWAIT_DATA;
4444
const CURSOR_TYPE_TAILABLE_AWAIT = 0x22;
4545

46-
const FIND_ONE_AND_RETURN_BEFORE = 0x01;
47-
const FIND_ONE_AND_RETURN_AFTER = 0x02;
48-
4946
protected $manager;
5047
protected $ns;
5148
protected $wc;
@@ -838,19 +835,6 @@ final protected function _delete($filter, $limit = 1)
838835
return $this->manager->executeBulkWrite($this->ns, $bulk, $this->wc);
839836
}
840837

841-
/**
842-
* Internal helper for throwing an exception with error message
843-
* @internal
844-
*/
845-
final protected function _generateCommandException($doc)
846-
{
847-
if ($doc["errmsg"]) {
848-
return new RuntimeException($doc["errmsg"]);
849-
}
850-
var_dump($doc);
851-
return new RuntimeException("FIXME: Unknown error");
852-
}
853-
854838
/**
855839
* Constructs the Query Wire Protocol field 'flags' based on $options
856840
* provided to other helpers
@@ -871,17 +855,6 @@ final protected function _opQueryFlags($options)
871855
return $flags;
872856
}
873857

874-
/**
875-
* Internal helper for running a command
876-
* @internal
877-
*/
878-
final protected function _runCommand($dbname, array $cmd, ReadPreference $rp = null)
879-
{
880-
//var_dump(\BSON\toJSON(\BSON\fromArray($cmd)));
881-
$command = new Command($cmd);
882-
return $this->manager->executeCommand($dbname, $command, $rp);
883-
}
884-
885858
/**
886859
* Internal helper for replacing/updating one/many documents
887860
* @internal

0 commit comments

Comments
 (0)