aboutsummaryrefslogtreecommitdiff
path: root/core/sys
diff options
context:
space:
mode:
authorJeroen van Rijn <Kelimion@users.noreply.github.com>2025-06-06 10:50:59 +0200
committerGitHub <noreply@github.com>2025-06-06 10:50:59 +0200
commit8389dfd050e9571cc71c96d44f6ad8e36d082383 (patch)
treec403a6eb5e8f071760b485fa221c132dd2bbe4ef /core/sys
parente870369c972be8054ee50ac441e5713b719c99a1 (diff)
parent4b36306674a8db103d123b079ac00d06e568d57e (diff)
Merge pull request #5291 from Kelimion/deprecate
Deprecate old @(deprecated) things.
Diffstat (limited to 'core/sys')
-rw-r--r--core/sys/darwin/Foundation/NSApplication.odin1
-rw-r--r--core/sys/windows/util.odin8
-rw-r--r--core/sys/windows/ws2_32.odin6
3 files changed, 0 insertions, 15 deletions
diff --git a/core/sys/darwin/Foundation/NSApplication.odin b/core/sys/darwin/Foundation/NSApplication.odin
index cad2ba777..a5e9f2e24 100644
--- a/core/sys/darwin/Foundation/NSApplication.odin
+++ b/core/sys/darwin/Foundation/NSApplication.odin
@@ -82,7 +82,6 @@ Application_setActivationPolicy :: proc "c" (self: ^Application, activationPolic
// NOTE: this is technically deprecated but still actively used (Sokol, glfw, SDL, etc.)
// and has no clear alternative although `activate` is what Apple tells you to use,
// that does not work the same way.
-// @(deprecated="Use NSApplication method activate instead.")
@(objc_type=Application, objc_name="activateIgnoringOtherApps")
Application_activateIgnoringOtherApps :: proc "c" (self: ^Application, ignoreOtherApps: BOOL) {
msgSend(nil, self, "activateIgnoringOtherApps:", ignoreOtherApps)
diff --git a/core/sys/windows/util.odin b/core/sys/windows/util.odin
index b3eb800bc..2db55c4fe 100644
--- a/core/sys/windows/util.odin
+++ b/core/sys/windows/util.odin
@@ -75,14 +75,6 @@ LANGIDFROMLCID :: #force_inline proc "contextless" (lcid: LCID) -> LANGID {
return LANGID(lcid)
}
-// this one gave me trouble as it do not mask the values.
-// the _ in the name is also off comparing to the c code
-// i can't find any usage in the odin repo
-@(deprecated = "use MAKEWORD")
-MAKE_WORD :: #force_inline proc "contextless" (x, y: WORD) -> WORD {
- return x << 8 | y
-}
-
utf8_to_utf16 :: proc(s: string, allocator := context.temp_allocator) -> []u16 {
if len(s) < 1 {
return nil
diff --git a/core/sys/windows/ws2_32.odin b/core/sys/windows/ws2_32.odin
index 0fc427728..6c68e43f3 100644
--- a/core/sys/windows/ws2_32.odin
+++ b/core/sys/windows/ws2_32.odin
@@ -242,10 +242,4 @@ foreign ws2_32 {
ntohl :: proc(netlong: c_ulong) -> c_ulong ---
// [MS-Docs](https://learn.microsoft.com/en-us/windows/win32/api/winsock2/nf-winsock2-ntohs)
ntohs :: proc(netshort: c_ushort) -> c_ushort ---
- // [MS-Docs](https://learn.microsoft.com/en-us/windows/win32/api/winsock2/nf-winsock2-htonl)
- @(deprecated="Use endian specific integers instead, https://odin-lang.org/docs/overview/#basic-types")
- htonl :: proc(hostlong: c_ulong) -> c_ulong ---
- // [MS-Docs](https://learn.microsoft.com/en-us/windows/win32/api/winsock2/nf-winsock2-htons)
- @(deprecated="Use endian specific integers instead, https://odin-lang.org/docs/overview/#basic-types")
- htons :: proc(hostshort: c_ushort) -> c_ushort ---
}