From 8259cecf7a90fe804dbccbb1a49b06e43113c92d Mon Sep 17 00:00:00 2001 From: Austin Henriksen Date: Wed, 20 Nov 2024 15:27:56 -0500 Subject: [PATCH] Removed unused variable. --- cpp/src/slice2py/Python.cpp | 4 +--- python/modules/IcePy/Slice.cpp | 4 +--- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/cpp/src/slice2py/Python.cpp b/cpp/src/slice2py/Python.cpp index c1773b5082e..b97ece1fbd8 100644 --- a/cpp/src/slice2py/Python.cpp +++ b/cpp/src/slice2py/Python.cpp @@ -536,8 +536,6 @@ Slice::Python::compile(const vector& argv) Ice::CtrlCHandler ctrlCHandler; ctrlCHandler.setCallback(interruptedCallback); - bool keepComments = true; - ostringstream os; if (dependxml) { @@ -592,7 +590,7 @@ Slice::Python::compile(const vector& 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) { diff --git a/python/modules/IcePy/Slice.cpp b/python/modules/IcePy/Slice.cpp index 121e99ca156..ed2590b1ed9 100644 --- a/python/modules/IcePy/Slice.cpp +++ b/python/modules/IcePy/Slice.cpp @@ -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) {