Commit 8b416d3c authored by Tommi Rantala's avatar Tommi Rantala

Remove some unused variables

parent 4e13e6d0
...@@ -322,8 +322,7 @@ void AttachedProbe::attach_uprobe() ...@@ -322,8 +322,7 @@ void AttachedProbe::attach_uprobe()
void AttachedProbe::attach_usdt(int pid) void AttachedProbe::attach_usdt(int pid)
{ {
struct bcc_usdt_location loc = {}; struct bcc_usdt_location loc = {};
int err, i; int err;
std::ostringstream offset_str;
void *ctx; void *ctx;
if (pid) if (pid)
......
...@@ -103,7 +103,6 @@ void list_probes(const std::string &search) ...@@ -103,7 +103,6 @@ void list_probes(const std::string &search)
return; return;
} }
std::set<std::string> matches;
size_t loc; size_t loc;
while (std::getline(file, line)) while (std::getline(file, line))
{ {
......
...@@ -5,7 +5,6 @@ ...@@ -5,7 +5,6 @@
namespace bpftrace { namespace bpftrace {
inline std::string GetProviderFromPath(std::string path) { inline std::string GetProviderFromPath(std::string path) {
std::string provider;
int i = path.rfind("/"); int i = path.rfind("/");
return (i != std::string::npos) ? path.substr(i + 1) : path; return (i != std::string::npos) ? path.substr(i + 1) : path;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment