original_string: public function removePackageUsage(PackageInterface $package)
      {
          $usageData = $this->getPackageUsage($package);
          $newUsageData = array();
          $projectName = $this->composer->getPackage()->getName();
  
          foreach ($usageData as $usage) {
              if ($projectName !== $usage) {
                  $newUsageData[] = $usage;
              }
          }
  
          $this->updatePackageUsageFile($package, $newUsageData);
      }
code: public function removePackageUsage(PackageInterface $package)
      {
          $usageData = $this->getPackageUsage($package);
          $newUsageData = array();
          $projectName = $this->composer->getPackage()->getName();
  
          foreach ($usageData as $usage) {
              if ($projectName !== $usage) {
                  $newUsageData[] = $usage;
              }
          }
  
          $this->updatePackageUsageFile($package, $newUsageData);
      }
code_tokens: public function removePackageUsage ( PackageInterface $ package ) { $ usageData = $ this -> getPackageUsage ( $ package ) ; $ newUsageData = array ( ) ; $ projectName = $ this -> composer -> getPackage ( ) -> getName ( ) ; foreach ( $ usageData as $ usage ) { if ( $ projectName !== $ usage ) { $ newUsageData [ ] = $ usage ; } } $ this -> updatePackageUsageFile ( $ package , $ newUsageData ) ; }
docstring: Remove the row in the "packages.json" file
  
  @param PackageInterface $package
docstring_tokens: Remove the row in the packages . json file