code: protected void removeTab(GalleryTabId tabId) {
  
          if (m_tabIds != null) {
              List<GalleryTabId> tabs = new ArrayList<GalleryTabId>(Arrays.asList(m_tabIds));
              if (tabs.contains(tabId)) {
                  m_tabIds = new GalleryTabId[tabs.size() - 1];
                  tabs.remove(tabId);
                  m_tabIds = tabs.toArray(new GalleryTabId[tabs.size()]);
              }
          }
      }
docs: Removes a tab id from the internal list of tab ids.<p>
  
  @param tabId the id of the tab to remove