Skip to content

Commit

Permalink
Removed unused variable.
Browse files Browse the repository at this point in the history
  • Loading branch information
InsertCreativityHere committed Nov 20, 2024
1 parent 4077cde commit 8259cec
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
4 changes: 1 addition & 3 deletions cpp/src/slice2py/Python.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -536,8 +536,6 @@ Slice::Python::compile(const vector<string>& argv)
Ice::CtrlCHandler ctrlCHandler;
ctrlCHandler.setCallback(interruptedCallback);

bool keepComments = true;

ostringstream os;
if (dependxml)
{
Expand Down Expand Up @@ -592,7 +590,7 @@ Slice::Python::compile(const vector<string>& argv)
else
{
PreprocessorPtr icecpp = Preprocessor::create(argv[0], *i, cppArgs);
FILE* cppHandle = icecpp->preprocess(keepComments, "-D__SLICE2PY__");
FILE* cppHandle = icecpp->preprocess(true, "-D__SLICE2PY__");

if (cppHandle == 0)
{
Expand Down
4 changes: 1 addition & 3 deletions python/modules/IcePy/Slice.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -116,12 +116,10 @@ IcePy_loadSlice(PyObject* /*self*/, PyObject* args)
debug = opts.isSet("d") || opts.isSet("debug");
all = opts.isSet("all");

bool keepComments = true;

for (const auto& file : files)
{
Slice::PreprocessorPtr icecpp = Slice::Preprocessor::create("icecpp", file, cppArgs);
FILE* cppHandle = icecpp->preprocess(keepComments, "-D__SLICE2PY__");
FILE* cppHandle = icecpp->preprocess(true, "-D__SLICE2PY__");

if (cppHandle == 0)
{
Expand Down

0 comments on commit 8259cec

Please sign in to comment.