diff --git a/src/api/api_config_params.cpp b/src/api/api_config_params.cpp
index 48c2df4a9..c46e7363d 100644
--- a/src/api/api_config_params.cpp
+++ b/src/api/api_config_params.cpp
@@ -106,10 +106,4 @@ extern "C" {
Z3_CATCH;
}
- Z3_bool Z3_API Z3_get_param_value(Z3_context c, Z3_string param_id, Z3_string* param_value) {
- LOG_Z3_get_param_value(c, param_id, param_value);
- // TODO
- return Z3_FALSE;
- }
-
};
diff --git a/src/api/dotnet/Context.cs b/src/api/dotnet/Context.cs
index 2b88cbab7..1c03d76b6 100644
--- a/src/api/dotnet/Context.cs
+++ b/src/api/dotnet/Context.cs
@@ -3527,28 +3527,11 @@ namespace Microsoft.Z3
/// Only a few configuration parameters are mutable once the context is created.
/// An exception is thrown when trying to modify an immutable parameter.
///
- ///
public void UpdateParamValue(string id, string value)
{
Native.Z3_update_param_value(nCtx, id, value);
}
- ///
- /// Get a configuration parameter.
- ///
- ///
- /// Returns null if the parameter value does not exist.
- ///
- ///
- public string GetParamValue(string id)
- {
- IntPtr res = IntPtr.Zero;
- if (Native.Z3_get_param_value(nCtx, id, out res) == 0)
- return null;
- else
- return Marshal.PtrToStringAnsi(res);
- }
-
#endregion
#region Internal
diff --git a/src/api/z3_api.h b/src/api/z3_api.h
index 04e2d38af..2e3ddf4b4 100644
--- a/src/api/z3_api.h
+++ b/src/api/z3_api.h
@@ -1462,15 +1462,6 @@ extern "C" {
*/
void Z3_API Z3_update_param_value(__in Z3_context c, __in Z3_string param_id, __in Z3_string param_value);
- /**
- \brief Return the value of a context parameter.
-
- \sa Z3_global_param_get
-
- def_API('Z3_get_param_value', BOOL, (_in(CONTEXT), _in(STRING), _out(STRING)))
- */
- Z3_bool_opt Z3_API Z3_get_param_value(__in Z3_context c, __in Z3_string param_id, __out_opt Z3_string_ptr param_value);
-
#ifdef CorML4
/**
\brief Interrupt the execution of a Z3 procedure.
diff --git a/src/cmd_context/context_params.cpp b/src/cmd_context/context_params.cpp
index d1184fbc8..254a1d931 100644
--- a/src/cmd_context/context_params.cpp
+++ b/src/cmd_context/context_params.cpp
@@ -86,13 +86,13 @@ void context_params::set(char const * param, char const * value) {
set_bool(m_smtlib2_compliant, param, value);
}
else {
- param_descrs d;
- collect_param_descrs(d);
- std::stringstream strm;
- strm << "unknown parameter '" << p << "'\n";
- strm << "Legal parameters are:\n";
- d.display(strm, 2, false, false);
- throw default_exception(strm.str());
+ param_descrs d;
+ collect_param_descrs(d);
+ std::stringstream strm;
+ strm << "unknown parameter '" << p << "'\n";
+ strm << "Legal parameters are:\n";
+ d.display(strm, 2, false, false);
+ throw default_exception(strm.str());
}
}