code: function(point) {
          var removed = this.components && (this.components.length > 2);
          if (removed) {
              OpenLayers.Geometry.Collection.prototype.removeComponent.apply(this, 
                                                                    arguments);
          }
          return removed;
      }
docs: Constructor: OpenLayers.Geometry.LineString
  Create a new LineString geometry
  
  Parameters:
  points - {Array(<OpenLayers.Geometry.Point>)} An array of points used to
  generate the linestring
  
   
  APIMethod: removeComponent
  Only allows removal of a point if there are three or more points in
  the linestring. (otherwise the result would be just a single point)
  
  Parameters:
  point - {<OpenLayers.Geometry.Point>} The point to be removed
  
  Returns:
  {Boolean} The component was removed.