@@ -43,9 +43,6 @@ class Collection
43
43
//self::QUERY_FLAG_TAILABLE_CURSOR | self::QUERY_FLAG_AWAIT_DATA;
44
44
const CURSOR_TYPE_TAILABLE_AWAIT = 0x22 ;
45
45
46
- const FIND_ONE_AND_RETURN_BEFORE = 0x01 ;
47
- const FIND_ONE_AND_RETURN_AFTER = 0x02 ;
48
-
49
46
protected $ manager ;
50
47
protected $ ns ;
51
48
protected $ wc ;
@@ -838,19 +835,6 @@ final protected function _delete($filter, $limit = 1)
838
835
return $ this ->manager ->executeBulkWrite ($ this ->ns , $ bulk , $ this ->wc );
839
836
}
840
837
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
-
854
838
/**
855
839
* Constructs the Query Wire Protocol field 'flags' based on $options
856
840
* provided to other helpers
@@ -871,17 +855,6 @@ final protected function _opQueryFlags($options)
871
855
return $ flags ;
872
856
}
873
857
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
-
885
858
/**
886
859
* Internal helper for replacing/updating one/many documents
887
860
* @internal
0 commit comments