Skip to content
Snippets Groups Projects
Commit 4fcc7384 authored by Jan Trávníček's avatar Jan Trávníček
Browse files

remove not needed code

parent 4fee42b9
No related branches found
No related tags found
No related merge requests found
......@@ -57,10 +57,6 @@ protected:
virtual Type & getData ( ) const = 0;
 
public:
Type & getValueReference ( ) const {
return getData ( );
}
Type & getValue ( bool ) const {
return getData ( );
}
......@@ -75,10 +71,6 @@ protected:
virtual const Type & getConstData ( ) const = 0;
 
public:
const Type & getConstValueReference ( ) const {
return getConstData ( );
}
const Type & getValue ( bool ) const {
return getConstData ( );
}
......@@ -93,10 +85,6 @@ protected:
virtual Type & getData ( ) const = 0;
 
public:
Type && getRValueReference ( ) const {
return std::move ( getData ( ) );
}
Type && getValue ( bool move ) const {
if ( move )
return std::move ( getData ( ) );
......@@ -114,10 +102,6 @@ protected:
virtual const Type & getConstData ( ) const = 0;
 
public:
const Type && getConstRValueReference ( ) const {
return std::move ( getConstData ( ) );
}
const Type && getValue ( bool move ) const {
if ( move )
return std::move ( getConstData ( ) );
......
......@@ -81,7 +81,7 @@ public:
std::shared_ptr < abstraction::ValueProvider < const T & > > ptr = abstraction::translateParam < const T & > ( getVariableInt ( name ) );
if ( ! ptr )
throw exception::CommonException ( "Invalid variable type. Requested: " + ext::to_string < T > ( ) + ", actual : " + getVariableInt ( name )->getReturnType ( ) );
return ptr->getConstValueReference ( );
return ptr->getValue ( false );
}
 
std::set < std::string > getVariableNames ( ) const {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment