Skip to content

Commit

Permalink
remove obsolete members from ServerContext
Browse files Browse the repository at this point in the history
  • Loading branch information
w0lek committed May 21, 2024
1 parent 8d639fc commit e931555
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 23 deletions.
22 changes: 0 additions & 22 deletions vpr/src/base/vpr_context.h
Original file line number Diff line number Diff line change
Expand Up @@ -578,12 +578,6 @@ class ServerContext : public Context {
void set_crit_paths(const std::vector<tatum::TimingPath>& crit_paths) { crit_paths_ = crit_paths; }
const std::vector<tatum::TimingPath>& crit_paths() const { return crit_paths_; }

void set_critical_path_num(int critical_path_num) { critical_path_num_ = critical_path_num; }
int critical_path_num() const { return critical_path_num_; }

void set_path_type(const std::string& path_type) { path_type_ = path_type; }
const std::string& path_type() const { return path_type_; }

void clear_crit_path_elements() { crit_path_element_indexes_.clear(); }
void set_crit_path_elements(const std::map<std::size_t, std::set<std::size_t>>& crit_path_element_indexes) { crit_path_element_indexes_ = crit_path_element_indexes; }
std::map<std::size_t, std::set<std::size_t>> crit_path_element_indexes() const { return crit_path_element_indexes_; }
Expand All @@ -610,22 +604,6 @@ class ServerContext : public Context {
*/
std::vector<tatum::TimingPath> crit_paths_;

/**
* @brief Stores the number of critical paths items.
*
* This value is used to generate a critical path report with a certain number of items,
* which will be sent back to the client upon request.
*/
int critical_path_num_ = 1;

/**
* @brief Stores the critical path type.
*
* This value is used to generate a specific type of critical path report and send
* it back to the client upon request.
*/
std::string path_type_ = "setup";

/**
* @brief Stores the selected critical path elements.
*
Expand Down
1 change: 0 additions & 1 deletion vpr/src/server/taskresolver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,6 @@ void TaskResolver::process_get_path_list_task(ezgl::application*, const TaskPtr&

// setup context
server_ctx.set_path_type(path_type);
server_ctx.set_critical_path_num(n_critical_path_num);
server_ctx.set_crit_paths(crit_paths_result.paths);

if (crit_paths_result.is_valid()) {
Expand Down

0 comments on commit e931555

Please sign in to comment.