@@ -133,32 +133,20 @@ namespace mongo {
133133        /* 
134134          Utility class for parseObject() below. 
135135
136-           Only one array can be unwound in a processing pipeline.  If the 
137-           UNWIND_OK option is used, unwindOk() will return true, and a field 
138-           can be declared as unwound using unwind(), after which unwindUsed() 
139-           will return true.  Only specify UNWIND_OK if it is OK to unwind an 
140-           array in the current context. 
141- 
142136          DOCUMENT_OK indicates that it is OK to use a Document in the current 
143137          context. 
144138         */  
145139        class  ObjectCtx  {
146140        public: 
147141            ObjectCtx (int  options);
148-             static  const  int  UNWIND_OK = 0x0001 ;
149-             static  const  int  DOCUMENT_OK = 0x0002 ;
150-             static  const  int  TOP_LEVEL = 0x0004 ;
151- 
152-             bool  unwindOk () const ;
153-             bool  unwindUsed () const ;
154-             void  unwind (string fieldName);
142+             static  const  int  DOCUMENT_OK = 0x0001 ;
143+             static  const  int  TOP_LEVEL = 0x0002 ;
155144
156145            bool  documentOk () const ;
157146            bool  topLevel () const ;
158147
159148        private: 
160149            int  options;
161-             string unwindField;
162150        };
163151
164152        /* 
@@ -172,8 +160,6 @@ namespace mongo {
172160        static  intrusive_ptr<Expression> parseObject (
173161            BSONElement *pBsonElement, ObjectCtx *pCtx);
174162
175-         static  const  char  unwindName[];
176- 
177163        /* 
178164          Parse a BSONElement Object which has already been determined to be 
179165          functional expression. 
@@ -1222,14 +1208,6 @@ namespace mongo {
12221208
12231209namespace  mongo  {
12241210
1225-     inline  bool  Expression::ObjectCtx::unwindOk () const  {
1226-         return  ((options & UNWIND_OK) != 0 );
1227-     }
1228- 
1229-     inline  bool  Expression::ObjectCtx::unwindUsed () const  {
1230-         return  (unwindField.size () != 0 );
1231-     }
1232- 
12331211    inline  int  Expression::signum (int  i) {
12341212        if  (i < 0 )
12351213            return  -1 ;
0 commit comments