original_string: public function removeSettingItem($owner, $code)
      {
          if (!$this->items) {
              throw new SystemException('Unable to remove settings item before items are loaded.');
          }
  
          $itemKey = $this->makeItemKey($owner, $code);
          unset($this->items[$itemKey]);
  
          if ($this->groupedItems) {
              foreach ($this->groupedItems as $category => $items) {
                  if (isset($items[$itemKey])) {
                      unset($this->groupedItems[$category][$itemKey]);
                  }
              }
          }
      }
code: public function removeSettingItem($owner, $code)
      {
          if (!$this->items) {
              throw new SystemException('Unable to remove settings item before items are loaded.');
          }
  
          $itemKey = $this->makeItemKey($owner, $code);
          unset($this->items[$itemKey]);
  
          if ($this->groupedItems) {
              foreach ($this->groupedItems as $category => $items) {
                  if (isset($items[$itemKey])) {
                      unset($this->groupedItems[$category][$itemKey]);
                  }
              }
          }
      }
code_tokens: public function removeSettingItem ( $ owner , $ code ) { if ( ! $ this -> items ) { throw new SystemException ( 'Unable to remove settings item before items are loaded.' ) ; } $ itemKey = $ this -> makeItemKey ( $ owner , $ code ) ; unset ( $ this -> items [ $ itemKey ] ) ; if ( $ this -> groupedItems ) { foreach ( $ this -> groupedItems as $ category => $ items ) { if ( isset ( $ items [ $ itemKey ] ) ) { unset ( $ this -> groupedItems [ $ category ] [ $ itemKey ] ) ; } } } }
docstring: Removes a single setting item
docstring_tokens: Removes a single setting item