Skip to content

Commit

Permalink
Removed unused variables to address warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
anutosh491 authored and vgvassilev committed Nov 7, 2023
1 parent eb4d98a commit 0c8cf2b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 8 deletions.
2 changes: 0 additions & 2 deletions src/xinspect.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,6 @@ namespace xcpp
tagfile = it->at("tagfile");
std::string filename = tagfiles_dir + "/" + tagfile;
pugi::xml_document doc;
pugi::xml_parse_result result = doc.load_file(filename.c_str());
class_member_predicate predicate{typename_, "function", method[2]};
auto node = doc.find_node(predicate);
if (!node.empty())
Expand Down Expand Up @@ -194,7 +193,6 @@ namespace xcpp
tagfile = it->at("tagfile");
std::string filename = tagfiles_dir + "/" + tagfile;
pugi::xml_document doc;
pugi::xml_parse_result result = doc.load_file(filename.c_str());
for (auto c : check)
{
node_predicate predicate{c, find_string};
Expand Down
6 changes: 3 additions & 3 deletions src/xinterpreter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ namespace xcpp
}

nl::json interpreter::execute_request_impl(
int execution_counter,
int /*execution_counter*/,
const std::string& code,
bool silent,
bool /*store_history*/,
Expand Down Expand Up @@ -414,7 +414,7 @@ namespace xcpp
return kernel_res;
}

nl::json interpreter::complete_request_impl(const std::string& code, int cursor_pos)
nl::json interpreter::complete_request_impl(const std::string& /*code*/, int cursor_pos)
{
return xeus::create_complete_reply(
nl::json::array(), /*matches*/
Expand All @@ -436,7 +436,7 @@ namespace xcpp
return kernel_res;
}

nl::json interpreter::is_complete_request_impl(const std::string& code)
nl::json interpreter::is_complete_request_impl(const std::string& /*code*/)
{
return xeus::create_is_complete_reply("complete", " ");
}
Expand Down
3 changes: 0 additions & 3 deletions src/xsystem.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,6 @@ namespace xcpp
std::smatch to_execute;
std::regex_search(code, to_execute, re);

int ret = 1;

// Redirection of stderr to stdout
std::string command = to_execute.str(1) + " 2>&1";

Expand All @@ -45,7 +43,6 @@ namespace xcpp
if (shell_result)
{
char buff[512];
ret = 0;
while (fgets(buff, sizeof(buff), shell_result))
{
std::cout << buff;
Expand Down

0 comments on commit 0c8cf2b

Please sign in to comment.