Remove some deprecated stuff

CC #2024
This commit is contained in:
Olivier Goffart 2023-01-26 10:14:05 +01:00 committed by Olivier Goffart
parent 473103dc95
commit a3ec320bfb
8 changed files with 4 additions and 72 deletions

View file

@ -1428,9 +1428,6 @@ cbindgen_private::NativeStyleMetrics::~NativeStyleMetrics()
#endif // !defined(DOXYGEN)
namespace private_api {
// Code generated by Slint <= 0.1.5 uses this enum with VersionCheckHelper
enum class [[deprecated]] VersionCheck { Major = SLINT_VERSION_MAJOR, Minor = SLINT_VERSION_MINOR,
Patch = SLINT_VERSION_PATCH };
template<int Major, int Minor, int Patch>
struct VersionCheckHelper
{

View file

@ -649,13 +649,6 @@ public:
}
}
/// \deprecated rename to invoke()
[[deprecated("renamed to invoke()")]] std::optional<Value>
invoke_callback(std::string_view name, std::span<const Value> args) const
{
return invoke(name, args);
}
/// Set a handler for the callback with the given name.
///
/// A callback with that name must be defined in the document otherwise the function
@ -781,14 +774,6 @@ public:
return {};
}
}
/// \deprecated renamed to invoke_global
[[deprecated("renamed to invoke_global()")]] std::optional<Value>
invoke_global_callback(std::string_view global, std::string_view callback_name,
std::span<const Value> args) const
{
return invoke_global(global, callback_name, args);
}
};
/// ComponentDefinition is a representation of a compiled component from .slint markup.