Skip to content

Commit

Permalink
remove unused keywords
Browse files Browse the repository at this point in the history
  • Loading branch information
gammasoft71 committed Sep 13, 2024
1 parent 1e0264f commit c66b57c
Show file tree
Hide file tree
Showing 59 changed files with 9 additions and 895 deletions.
14 changes: 0 additions & 14 deletions src/xtd.core/include/xtd/access_violation_exception.h
Original file line number Diff line number Diff line change
Expand Up @@ -83,17 +83,3 @@ namespace xtd {
const char* default_message() const noexcept {return "An access violation occured."_t;}
};
}

/// @brief Helper on xtd::access_violation_exception to call it with current stack frame information.
/// @par Library
/// xtd.core
/// @ingroup xtd_core exceptions
/// @remarks Is equivalent to xtd::access_violation_exception {{any argument}, csf_}
/// ```cpp
/// void my_func() {
/// if (invalid_info) throw access_violation_exception_(); // same as : throw access_violation_exception {csf_};
/// if (invalid_value) throw access_violation_exception_("Bad value"); // same as : throw access_violation_exception {"Bad value", csf_};
/// ...
/// }
/// ```
#define access_violation_exception_(...) access_violation_exception(add_csf_(__VA_ARGS__))
18 changes: 0 additions & 18 deletions src/xtd.core/include/xtd/argument_exception.h
Original file line number Diff line number Diff line change
Expand Up @@ -88,21 +88,3 @@ namespace xtd {
const char* default_message() const noexcept {return "Value does not fall within the expected range."_t;}
};
}

/// @brief Helper on xtd::argument_exception to call it with current stack frame information.
/// @par Header
/// ```cpp
/// #include <xtd/argument_exception>
/// ```
/// @par Library
/// xtd.core
/// @ingroup xtd_core exceptions
/// @remarks Is equivalent to xtd::argument_exception {{any argument}, csf_}
/// ```cpp
/// void my_func() {
/// if (invalid_info) throw argument_exception_(); // same as : throw argument_exception {csf_};
/// if (invalid_value) throw argument_exception_("Bad value"); // same as : throw argument_exception {"Bad value", csf_};
/// ...
/// }
/// ```
#define argument_exception_(...) argument_exception(add_csf_(__VA_ARGS__))
18 changes: 0 additions & 18 deletions src/xtd.core/include/xtd/argument_null_exception.h
Original file line number Diff line number Diff line change
Expand Up @@ -87,21 +87,3 @@ namespace xtd {
const char* default_message() const noexcept {return "Value cannot be null."_t;}
};
}

/// @brief Helper on xtd::argument_null_exception to call it with current stack frame information.
/// @par Header
/// ```cpp
/// #include <xtd/argument_null_exception>
/// ```
/// @par Library
/// xtd.core
/// @ingroup xtd_core exceptions
/// @remarks Is equivalent to xtd::argument_null_exception {{any argument}, csf_}
/// ```cpp
/// void my_func() {
/// if (invalid_info) throw argument_null_exception_(); // same as : throw argument_null_exception {csf_};
/// if (invalid_value) throw argument_null_exception_("Bad value"); // same as : throw argument_null_exception {"Bad value", csf_};
/// ...
/// }
/// ```
#define argument_null_exception_(...) argument_null_exception(add_csf_(__VA_ARGS__))
18 changes: 0 additions & 18 deletions src/xtd.core/include/xtd/argument_out_of_range_exception.h
Original file line number Diff line number Diff line change
Expand Up @@ -87,21 +87,3 @@ namespace xtd {
const char* default_message() const noexcept {return "Specified argument is out of range of valid values."_t;}
};
}

/// @brief Helper on xtd::argument_out_of_range_exception to call it with current stack frame information.
/// @par Header
/// ```cpp
/// #include <xtd/argument_out_of_range_exception>
/// ```
/// @par Library
/// xtd.core
/// @ingroup xtd_core exceptions
/// @remarks Is equivalent to xtd::argument_out_of_range_exception {{any argument}, csf_}
/// ```cpp
/// void my_func() {
/// if (invalid_info) throw argument_out_of_range_exception_(); // same as : throw argument_out_of_range_exception {csf_};
/// if (invalid_value) throw argument_out_of_range_exception_("Bad value"); // same as : throw argument_out_of_range_exception {"Bad value", csf_};
/// ...
/// }
/// ```
#define argument_out_of_range_exception_(...) argument_out_of_range_exception(add_csf_(__VA_ARGS__))
18 changes: 0 additions & 18 deletions src/xtd.core/include/xtd/arithmetic_exception.h
Original file line number Diff line number Diff line change
Expand Up @@ -87,21 +87,3 @@ namespace xtd {
const char* default_message() const noexcept {return "Overflow or underflow in the arithmetic operation."_t;}
};
}

/// @brief Helper on xtd::arithmetic_exception to call it with current stack frame information.
/// @par Header
/// ```cpp
/// #include <xtd/arithmetic_exception>
/// ```
/// @par Library
/// xtd.core
/// @ingroup xtd_core exceptions
/// @remarks Is equivalent to xtd::arithmetic_exception {{any argument}, csf_}
/// ```cpp
/// void my_func() {
/// if (invalid_info) throw arithmetic_exception_(); // same as : throw arithmetic_exception {csf_};
/// if (invalid_value) throw arithmetic_exception_("Bad value"); // same as : throw arithmetic_exception {"Bad value", csf_};
/// ...
/// }
/// ```
#define arithmetic_exception_(...) arithmetic_exception(add_csf_(__VA_ARGS__))
18 changes: 0 additions & 18 deletions src/xtd.core/include/xtd/collections/key_not_found_exception.h
Original file line number Diff line number Diff line change
Expand Up @@ -95,21 +95,3 @@ namespace xtd {
};
}
}

/// @brief Helper on xtd::collections::key_not_found_exception to call it with current stack frame information.
/// @par Header
/// ```cpp
/// #include <xtd/collections/key_not_found_exception>
/// ```
/// @par Library
/// xtd.core
/// @ingroup xtd_core exceptions
/// @remarks Is equivalent to xtd::collections::key_not_found_exception {{any argument}, csf_}
/// ```cpp
/// void my_func() {
/// if (invalid_info) throw key_not_found_exception_(); // same as : throw key_not_found_exception {csf_};
/// if (invalid_value) throw key_not_found_exception_("Bad value"); // same as : throw key_not_found_exception {"Bad value", csf_};
/// ...
/// }
/// ```
#define key_not_found_exception_(...) key_not_found_exception(add_csf_(__VA_ARGS__))
18 changes: 0 additions & 18 deletions src/xtd.core/include/xtd/divided_by_zero_exception.h
Original file line number Diff line number Diff line change
Expand Up @@ -87,21 +87,3 @@ namespace xtd {
const char* default_message() const noexcept {return "Attempt to divide by zero."_t;}
};
}

/// @brief Helper on xtd::divided_by_zero_exception to call it with current stack frame information.
/// @par Header
/// ```cpp
/// #include <xtd/divided_by_zero_exception>
/// ```
/// @par Library
/// xtd.core
/// @ingroup xtd_core exceptions
/// @remarks Is equivalent to xtd::divided_by_zero_exception {{any argument}, csf_}
/// ```cpp
/// void my_func() {
/// if (invalid_info) throw divided_by_zero_exception_(); // same as : throw divided_by_zero_exception {csf_};
/// if (invalid_value) throw divided_by_zero_exception_("Bad value"); // same as : throw divided_by_zero_exception {"Bad value", csf_};
/// ...
/// }
/// ```
#define divided_by_zero_exception_(...) divided_by_zero_exception(add_csf_(__VA_ARGS__))
18 changes: 0 additions & 18 deletions src/xtd.core/include/xtd/domain_exception.h
Original file line number Diff line number Diff line change
Expand Up @@ -87,21 +87,3 @@ namespace xtd {
const char* default_message() const noexcept {return "Report domain error."_t;}
};
}

/// @brief Helper on xtd::domain_exception to call it with current stack frame information.
/// @par Header
/// ```cpp
/// #include <xtd/domain_exception>
/// ```
/// @par Library
/// xtd.core
/// @ingroup xtd_core exceptions
/// @remarks Is equivalent to xtd::domain_exception {{any argument}, csf_}
/// ```cpp
/// void my_func() {
/// if (invalid_info) throw domain_exception_(); // same as : throw domain_exception {csf_};
/// if (invalid_value) throw domain_exception_("Bad value"); // same as : throw domain_exception {"Bad value", csf_};
/// ...
/// }
/// ```
#define domain_exception_(...) domain_exception(add_csf_(__VA_ARGS__))
14 changes: 0 additions & 14 deletions src/xtd.core/include/xtd/exception.h
Original file line number Diff line number Diff line change
Expand Up @@ -172,17 +172,3 @@ namespace xtd {
xtd::sptr<xtd::diagnostics::stack_trace> stack_trace_;
};
}

/// @brief Helper on xtd::exception to call it with current stack frame information.
/// @par Library
/// xtd.core
/// @ingroup xtd_core exceptions
/// @remarks Is equivalent to xtd::exception {{any argument}, csf_}
/// ```cpp
/// void my_func() {
/// if (invalid_info) throw exception_(); // same as : throw exception {csf_};
/// if (invalid_value) throw exception_("Bad value"); // same as : throw exception {"Bad value", csf_};
/// ...
/// }
/// ```
#define exception_(...) exception(add_csf_(__VA_ARGS__))
14 changes: 0 additions & 14 deletions src/xtd.core/include/xtd/format_exception.h
Original file line number Diff line number Diff line change
Expand Up @@ -83,17 +83,3 @@ namespace xtd {
const char* default_message() const noexcept {return "One of identified items is an invalid format."_t;}
};
}

/// @brief Helper on xtd::format_exception to call it with current stack frame information.
/// @par Library
/// xtd.core
/// @ingroup xtd_core exceptions
/// @remarks Is equivalent to xtd::format_exception {{any argument}, csf_}
/// ```cpp
/// void my_func() {
/// if (invalid_info) throw format_exception_(); // same as : throw format_exception {csf_};
/// if (invalid_value) throw format_exception_("Bad value"); // same as : throw format_exception {"Bad value", csf_};
/// ...
/// }
/// ```
#define format_exception_(...) format_exception(add_csf_(__VA_ARGS__))
14 changes: 0 additions & 14 deletions src/xtd.core/include/xtd/index_out_of_range_exception.h
Original file line number Diff line number Diff line change
Expand Up @@ -83,17 +83,3 @@ namespace xtd {
const char* default_message() const noexcept {return "Index was outside the bounds of the array."_t;}
};
}

/// @brief Helper on xtd::index_out_of_range_exception to call it with current stack frame information.
/// @par Library
/// xtd.core
/// @ingroup xtd_core exceptions
/// @remarks Is equivalent to xtd::index_out_of_range_exception {{any argument}, csf_}
/// ```cpp
/// void my_func() {
/// if (invalid_info) throw index_out_of_range_exception_(); // same as : throw index_out_of_range_exception {csf_};
/// if (invalid_value) throw index_out_of_range_exception_("Bad value"); // same as : throw index_out_of_range_exception {"Bad value", csf_};
/// ...
/// }
/// ```
#define index_out_of_range_exception_(...) index_out_of_range_exception(add_csf_(__VA_ARGS__))
14 changes: 0 additions & 14 deletions src/xtd.core/include/xtd/interrupt_exception.h
Original file line number Diff line number Diff line change
Expand Up @@ -83,17 +83,3 @@ namespace xtd {
const char* default_message() const noexcept {return "An interruption occured."_t;}
};
}

/// @brief Helper on xtd::interrupt_exception to call it with current stack frame information.
/// @par Library
/// xtd.core
/// @ingroup xtd_core exceptions
/// @remarks Is equivalent to xtd::interrupt_exception {{any argument}, csf_}
/// ```cpp
/// void my_func() {
/// if (invalid_info) throw interrupt_exception_(); // same as : throw interrupt_exception {csf_};
/// if (invalid_value) throw interrupt_exception_("Bad value"); // same as : throw interrupt_exception {"Bad value", csf_};
/// ...
/// }
/// ```
#define interrupt_exception_(...) interrupt_exception(add_csf_(__VA_ARGS__))
14 changes: 0 additions & 14 deletions src/xtd.core/include/xtd/invalid_cast_exception.h
Original file line number Diff line number Diff line change
Expand Up @@ -83,17 +83,3 @@ namespace xtd {
const char* default_message() const noexcept {return "Specified cast is not valid."_t;}
};
}

/// @brief Helper on xtd::invalid_cast_exception to call it with current stack frame information.
/// @par Library
/// xtd.core
/// @ingroup xtd_core exceptions
/// @remarks Is equivalent to xtd::invalid_cast_exception {{any argument}, csf_}
/// ```cpp
/// void my_func() {
/// if (invalid_info) throw invalid_cast_exception_(); // same as : throw invalid_cast_exception {csf_};
/// if (invalid_value) throw invalid_cast_exception_("Bad value"); // same as : throw invalid_cast_exception {"Bad value", csf_};
/// ...
/// }
/// ```
#define invalid_cast_exception_(...) invalid_cast_exception(add_csf_(__VA_ARGS__))
14 changes: 0 additions & 14 deletions src/xtd.core/include/xtd/invalid_operation_exception.h
Original file line number Diff line number Diff line change
Expand Up @@ -83,17 +83,3 @@ namespace xtd {
const char* default_message() const noexcept {return "Operation is not valid due to the current state of the object."_t;}
};
}

/// @brief Helper on xtd::invalid_operation_exception to call it with current stack frame information.
/// @par Library
/// xtd.core
/// @ingroup xtd_core exceptions
/// @remarks Is equivalent to xtd::invalid_operation_exception {{any argument}, csf_}
/// ```cpp
/// void my_func() {
/// if (invalid_info) throw invalid_operation_exception_(); // same as : throw invalid_operation_exception {csf_};
/// if (invalid_value) throw invalid_operation_exception_("Bad value"); // same as : throw invalid_operation_exception {"Bad value", csf_};
/// ...
/// }
/// ```
#define invalid_operation_exception_(...) invalid_operation_exception(add_csf_(__VA_ARGS__))
14 changes: 0 additions & 14 deletions src/xtd.core/include/xtd/invalid_program_exception.h
Original file line number Diff line number Diff line change
Expand Up @@ -83,17 +83,3 @@ namespace xtd {
const char* default_message() const noexcept {return "The system detected an invalid program."_t;}
};
}

/// @brief Helper on xtd::invalid_program_exception to call it with current stack frame information.
/// @par Library
/// xtd.core
/// @ingroup xtd_core exceptions
/// @remarks Is equivalent to xtd::invalid_program_exception {{any argument}, csf_}
/// ```cpp
/// void my_func() {
/// if (invalid_info) throw invalid_program_exception_(); // same as : throw invalid_program_exception {csf_};
/// if (invalid_value) throw invalid_program_exception_("Bad value"); // same as : throw invalid_program_exception {"Bad value", csf_};
/// ...
/// }
/// ```
#define invalid_program_exception_(...) invalid_program_exception(add_csf_(__VA_ARGS__))
18 changes: 0 additions & 18 deletions src/xtd.core/include/xtd/io/directory_not_found_exception.h
Original file line number Diff line number Diff line change
Expand Up @@ -94,21 +94,3 @@ namespace xtd {
};
}
}

/// @brief Helper on xtd::io::directory_not_found_exception to call it with current stack frame information.
/// @par Header
/// ```cpp
/// #include <xtd/io/directory_not_found_exception>
/// ```
/// @par Library
/// xtd.core
/// @ingroup xtd_core exceptions
/// @remarks Is equivalent to xtd::io::directory_not_found_exception {{any argument}, csf_}
/// ```cpp
/// void my_func() {
/// if (invalid_info) throw directory_not_found_exception_(); // same as : throw directory_not_found_exception {csf_};
/// if (invalid_value) throw directory_not_found_exception_("Bad value"); // same as : throw directory_not_found_exception {"Bad value", csf_};
/// ...
/// }
/// ```
#define directory_not_found_exception_(...) directory_not_found_exception(add_csf_(__VA_ARGS__))
18 changes: 0 additions & 18 deletions src/xtd.core/include/xtd/io/drive_not_found_exception.h
Original file line number Diff line number Diff line change
Expand Up @@ -95,21 +95,3 @@ namespace xtd {
};
}
}

/// @brief Helper on xtd::io::drive_not_found_exception to call it with current stack frame information.
/// @par Header
/// ```cpp
/// #include <xtd/io/drive_not_found_exception>
/// ```
/// @par Library
/// xtd.core
/// @ingroup xtd_core exceptions
/// @remarks Is equivalent to xtd::io::drive_not_found_exception {{any argument}, csf_}
/// ```cpp
/// void my_func() {
/// if (invalid_info) throw drive_not_found_exception_(); // same as : throw drive_not_found_exception {csf_};
/// if (invalid_value) throw drive_not_found_exception_("Bad value"); // same as : throw drive_not_found_exception {"Bad value", csf_};
/// ...
/// }
/// ```
#define drive_not_found_exception_(...) drive_not_found_exception(add_csf_(__VA_ARGS__))
18 changes: 0 additions & 18 deletions src/xtd.core/include/xtd/io/end_of_stream_exception.h
Original file line number Diff line number Diff line change
Expand Up @@ -95,21 +95,3 @@ namespace xtd {
};
}
}

/// @brief Helper on xtd::io::end_of_stream_exception to call it with current stack frame information.
/// @par Header
/// ```cpp
/// #include <xtd/io/end_of_stream_exception>
/// ```
/// @par Library
/// xtd.core
/// @ingroup xtd_core exceptions
/// @remarks Is equivalent to xtd::io::end_of_stream_exception {{any argument}, csf_}
/// ```cpp
/// void my_func() {
/// if (invalid_info) throw end_of_stream_exception_(); // same as : throw end_of_stream_exception {csf_};
/// if (invalid_value) throw end_of_stream_exception_("Bad value"); // same as : throw end_of_stream_exception {"Bad value", csf_};
/// ...
/// }
/// ```
#define end_of_stream_exception_(...) end_of_stream_exception(add_csf_(__VA_ARGS__))
18 changes: 0 additions & 18 deletions src/xtd.core/include/xtd/io/file_format_exception.h
Original file line number Diff line number Diff line change
Expand Up @@ -95,21 +95,3 @@ namespace xtd {
};
}
}

/// @brief Helper on xtd::io::file_format_exception to call it with current stack frame information.
/// @par Header
/// ```cpp
/// #include <xtd/io/file_format_exception>
/// ```
/// @par Library
/// xtd.core
/// @ingroup xtd_core exceptions
/// @remarks Is equivalent to xtd::io::file_format_exception {{any argument}, csf_}
/// ```cpp
/// void my_func() {
/// if (invalid_info) throw file_format_exception_(); // same as : throw file_format_exception {csf_};
/// if (invalid_value) throw file_format_exception_("Bad value"); // same as : throw file_format_exception {"Bad value", csf_};
/// ...
/// }
/// ```
#define file_format_exception_(...) file_format_exception(add_csf_(__VA_ARGS__))
Loading

0 comments on commit c66b57c

Please sign in to comment.