public final <T>void removeInternal(List<T> list,int position){
  if (hasHeaderView() && position == 0)   return;
  if (enableLoadMore() && position == getItemCount() - 1)   return;
  if (list.size() > 0) {
synchronized (mLock) {
      list.remove(hasHeaderView() ? position - 1 : position);
    }
    removeNotifyExternal(position);
    notifyItemRemoved(position);
  }
}

public final < T > void removeInternal ( List < T > list , int position ) { if ( hasHeaderView ( ) && position == 0 ) return ; if ( enableLoadMore ( ) && position == getItemCount ( ) - 1 ) return ; if ( list . size ( ) > 0 ) { synchronized ( mLock ) { list . remove ( hasHeaderView ( ) ? position - 1 : position ) ; } removeNotifyExternal ( position ) ; notifyItemRemoved ( position ) ; } }
remove a item of the list of the adapter
