Ignore:
Timestamp:
Jan 8, 2014, 6:05:38 PM (10 years ago)
Author:
garnier
Message:

Suppression de methodes deprecated et de quelques warning de compilation

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Interface_Web/trunk/pspaWT/sources/controler/src/dataManager.cc

    r480 r481  
    3434  if (console) console->addConsoleMessage(message + "\n");
    3535  pspa_->processEvents();
    36 }
    37 
    38 string dataManager::getLabelFromElementNumero_deprecated(int numero)
    39 {
    40 /*
    41  abstractElement* ptr = pspa_->getBeamLine_deprecated()->getAbstractElement(numero-1);
    42   if ( ptr == NULL ) return "";
    43   return ptr->getLabel();
    44 */
    45 return "";
    46 }
    47 
    48 int dataManager::getNumeroFromElementLabel_deprecated(string label)
    49 {
    50 /*  int index = -1;
    51   for (int k = 0; k < getBeamLineSize() ; k++) {
    52     if (pspa_->getBeamLine_deprecated()->getAbstractElement(k) != NULL) {
    53       if ( pspa_->getBeamLine_deprecated()->getAbstractElement(k)->getLabel() == label )
    54         {
    55           index = (int)k + 1;
    56           return index;
    57         }
    58     }
    59   }
    60   return index;
    61 */
    62   return 0;
    6336}
    6437
     
    378351}
    379352
    380 int dataManager::getBeamLineSize_deprecated() {
    381 // FIXME : Cette methode ne doit pas exister, mis a part pour savoir quelle est la taille de la beamLine
    382   unsigned int i = 0;
    383   for (unsigned k = 0; k < jobList_.size(); k++) {
    384     sector* sector = jobList_[k];
    385     for (unsigned l = 0; l < sector->getSectionsToExecute().size(); l++) {
    386       i += sector->getSectionsToExecute()[l]->getElements().size();
    387     }
    388   }
    389   return i;
    390 }
    391353
    392354
Note: See TracChangeset for help on using the changeset viewer.