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

abstraction: remove unused getProxyAbstraction on OperationAbstraction

Most likely a remnant of abstraction refactoring to OperationAbstraction and
Value where Value is using the functionality, not the OperationAbstraction
parent 2a2f8acd
No related branches found
No related tags found
1 merge request!208Merge jt
...@@ -16,8 +16,4 @@ std::string OperationAbstraction::getReturnType ( ) const { ...@@ -16,8 +16,4 @@ std::string OperationAbstraction::getReturnType ( ) const {
return ext::to_string ( getReturnTypeIndex ( ) ); return ext::to_string ( getReturnTypeIndex ( ) );
} }
   
std::shared_ptr < abstraction::OperationAbstraction > OperationAbstraction::getProxyAbstraction ( ) {
return shared_from_this();
}
} /* namespace abstraction */ } /* namespace abstraction */
...@@ -11,7 +11,7 @@ namespace abstraction { ...@@ -11,7 +11,7 @@ namespace abstraction {
   
class Value; class Value;
   
class OperationAbstraction : public std::enable_shared_from_this < OperationAbstraction > { class OperationAbstraction {
public: public:
virtual void attachInput ( const std::shared_ptr < abstraction::Value > & input, size_t index ) = 0; virtual void attachInput ( const std::shared_ptr < abstraction::Value > & input, size_t index ) = 0;
virtual void detachInput ( size_t index ) = 0; virtual void detachInput ( size_t index ) = 0;
...@@ -40,8 +40,6 @@ public: ...@@ -40,8 +40,6 @@ public:
std::string getReturnType ( ) const; std::string getReturnType ( ) const;
   
virtual abstraction::TypeQualifiers::TypeQualifierSet getReturnTypeQualifiers ( ) const = 0; virtual abstraction::TypeQualifiers::TypeQualifierSet getReturnTypeQualifiers ( ) const = 0;
virtual std::shared_ptr < abstraction::OperationAbstraction > getProxyAbstraction ( );
}; };
   
} /* namespace abstraction */ } /* namespace abstraction */
......
...@@ -119,10 +119,6 @@ public: ...@@ -119,10 +119,6 @@ public:
return getAbstractions ( ) [ m_resultId ]->getLifeReference ( )->getReturnTypeQualifiers ( ); return getAbstractions ( ) [ m_resultId ]->getLifeReference ( )->getReturnTypeQualifiers ( );
} }
   
std::shared_ptr < abstraction::OperationAbstraction > getProxyAbstraction ( ) override {
return getAbstractions ( ) [ m_resultId ]->getLifeReference ( )->getProxyAbstraction ( );
}
}; };
   
} /* namespace abstraction */ } /* namespace abstraction */
......
...@@ -94,13 +94,6 @@ public: ...@@ -94,13 +94,6 @@ public:
throw std::domain_error ( "ReturnTypeQualifiers not available before evaluation." ); throw std::domain_error ( "ReturnTypeQualifiers not available before evaluation." );
} }
   
std::shared_ptr < abstraction::OperationAbstraction > getProxyAbstraction ( ) override {
if ( this->m_abstraction )
return this->m_abstraction->getProxyAbstraction ( );
else
throw std::domain_error ( "Proxy abstraction not available before evaluation." );
}
}; };
   
} /* namespace abstraction */ } /* namespace abstraction */
......
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