code: function(features, geometry) {
          for(var i=0, len=features.length; i<len; ++i) {
              if(features[i].geometry === geometry) {
                  features.splice(i, 1);
                  break;
              }
          }
      }
docs: Method: removeByGeometry
  Remove a feature from a list based on the given geometry.
  
  Parameters:
  features - {Array(<OpenLayers.Feature.Vector>)} A list of features.
  geometry - {<OpenLayers.Geometry>} A geometry.