| 111 | } |
| 112 | |
| 113 | int RemoveNoOps(OpRcPtrVec & opVec) |
| 114 | { |
| 115 | int count = 0; |
| 116 | OpRcPtrVec::const_iterator iter = opVec.begin(); |
| 117 | while (iter != opVec.end()) |
| 118 | { |
| 119 | if ((*iter)->isNoOp()) |
| 120 | { |
| 121 | iter = opVec.erase(iter); |
| 122 | ++count; |
| 123 | } |
| 124 | else |
| 125 | { |
| 126 | ++iter; |
| 127 | } |
| 128 | } |
| 129 | return count; |
| 130 | } |
| 131 | |
| 132 | void FinalizeOps(OpRcPtrVec & opVec) |
| 133 | { |