Skip to content

Commit

Permalink
remove unused vars
Browse files Browse the repository at this point in the history
  • Loading branch information
zaucy committed Jul 4, 2024
1 parent 5873093 commit 8166a41
Showing 1 changed file with 0 additions and 35 deletions.
35 changes: 0 additions & 35 deletions tools/generators/cpp/cpp_generator.cc
Original file line number Diff line number Diff line change
Expand Up @@ -7,40 +7,6 @@
#include <map>
#include <set>

namespace fs = std::filesystem;

static const char SCRIPT_SRC_START[] = R"______(
#include <cstdlib>
#include <memory>
#include <string>
#include <iostream>
#include <filesystem>
#include "tools/cpp/runfiles/runfiles.h"
using bazel::tools::cpp::runfiles::Runfiles;
std::filesystem::path get_build_workspace_dir() {
return std::filesystem::path(
std::getenv("BUILD_WORKSPACE_DIRECTORY")
).make_preferred();
}
int main(int argc, char* argv[]) {
std::string cmd;
std::string error;
std::unique_ptr<Runfiles> runfiles(Runfiles::Create(argv[0], BAZEL_CURRENT_REPOSITORY, &error));
if(!error.empty()) {
std::cerr << error << std::endl;
std::exit(1);
}
)______";

static const char SCRIPT_SRC_END[] = R"______(
return std::system(cmd.c_str());
} // end of main
)______";

std::string escaped_string
( const std::string& str
)
Expand Down Expand Up @@ -87,7 +53,6 @@ static void substr_str
}

int main(int argc, char* argv[]) {
bool force = false;
std::string generated_script_path;
std::string tool;
std::vector<std::string> forwarded_args;
Expand Down

0 comments on commit 8166a41

Please sign in to comment.