Skip to content

Commit

Permalink
Comments: Remove unneeded TODO comments
Browse files Browse the repository at this point in the history
Some TODO comments that were no longer needed have been removed.

Co-authored-by: Amrita Goswami <[email protected]>
  • Loading branch information
MSallermann and amritagos committed Mar 15, 2024
1 parent 88e6a64 commit 7919342
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 4 deletions.
2 changes: 1 addition & 1 deletion include/agent_generation.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ std::vector<AgentT> generate_from_file( const std::string & file )
// Get the current line as a substring
auto line = file_contents.substr( start_of_line, end_of_line - start_of_line );
start_of_line = end_of_line + 1;
// TODO: check if empty or comment

if( line.empty() )
{
break;
Expand Down
1 change: 0 additions & 1 deletion include/network_generation.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,6 @@ Network<AgentType> generate_from_file( const std::string & file )
auto line = file_contents.substr( start_of_line, end_of_line - start_of_line );
start_of_line = end_of_line + 1;

// TODO: check if empty or comment
if( line.empty() )
{
break;
Expand Down
2 changes: 0 additions & 2 deletions include/util/io.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ void network_to_dot_file( const Network<AgentT> & network, const std::string & f
fs.close();
}

// @TODO: Network now contains the agents, so there is no need for simulation.
template<typename AgentT>
void opinions_to_file( const Network<AgentT> & network, const std::string & file_path )
{
Expand All @@ -55,7 +54,6 @@ void opinions_to_file( const Network<AgentT> & network, const std::string & file
fs.close();
}

// @TODO: There is no need to use simulation anymore since network should have the agents
template<typename AgentT>
void network_to_file( const Network<AgentT> & network, const std::string & file_path )
{
Expand Down

0 comments on commit 7919342

Please sign in to comment.