Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 10469


Ignore:
Timestamp:
May 25, 2015, 12:16:43 PM (10 years ago)
Author:
landauf
Message:

removed unused code

Location:
code/branches/core7/src/libraries/network
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • code/branches/core7/src/libraries/network/NetworkFunction.h

    r10468 r10469  
    9898    virtual void setNetworkID( uint32_t id )
    9999        { NetworkFunctionBase::setNetworkID( id ); NetworkFunctionStatic::getIdMap()[id] = this; }
    100     static inline NetworkFunctionStatic* getNetworkFunction( uint32_t id)
    101         { assert( NetworkFunctionStatic::getIdMap().find(id)!=NetworkFunctionStatic::getIdMap().end() ); return NetworkFunctionStatic::getIdMap()[id]; }
    102100    static NetworkFunctionStatic* getFunction( uint32_t id )
    103101        { assert( NetworkFunctionStatic::getIdMap().find(id) != NetworkFunctionStatic::getIdMap().end() ); return NetworkFunctionStatic::getIdMap()[id]; }
     
    119117
    120118    virtual void setNetworkID( uint32_t id ){ NetworkFunctionBase::setNetworkID( id ); idMap_[id] = this; }
    121     static inline NetworkMemberFunctionBase* getNetworkFunction( uint32_t id){ assert( idMap_.find(id)!=idMap_.end() ); return idMap_[id]; }
    122119    static NetworkMemberFunctionBase* getFunction( uint32_t id ){ assert( idMap_.find(id) != idMap_.end() ); return idMap_[id]; }
    123120    static NetworkMemberFunctionBase* getFunction( const NetworkFunctionPointer& p ){ assert( functorMap_.find(p) != functorMap_.end() ); return functorMap_[p]; }
  • code/branches/core7/src/libraries/network/NetworkFunctionManager.cc

    r10468 r10469  
    3232namespace orxonox
    3333{
    34     std::map<uint32_t, bool> NetworkFunctionManager::isStaticMap_;
    35 
    3634    /* static */NetworkFunctionManager& NetworkFunctionManager::getInstance()
    3735    {
  • code/branches/core7/src/libraries/network/NetworkFunctionManager.h

    r10468 r10469  
    4242            static NetworkFunctionManager& getInstance();
    4343
    44             static inline bool  isStatic( uint32_t networkID )  { return isStaticMap_[networkID]; }
    4544            static void setNetworkID(const std::string& name, uint32_t id);
    4645            static void destroyAllNetworkFunctions();
    4746            static std::map<std::string, NetworkFunctionBase*>& getNameMap();
    48 
    49           private:
    50             static std::map<uint32_t, bool> isStaticMap_;
    5147    };
    5248}
Note: See TracChangeset for help on using the changeset viewer.