public boolean remove(ImageInfo object){
  final int location=getLocation(object);
  final boolean removed=data.remove(object);
  notifyItemRemoved(location);
  return removed;
}

public boolean remove ( ImageInfo object ) { final int location = getLocation ( object ) ; final boolean removed = data . remove ( object ) ; notifyItemRemoved ( location ) ; return removed ; }
removes the first occurrence of the specified object from the data .
