From 4a8634227e1f59e731e581cb89f4e45d8cfdec28 Mon Sep 17 00:00:00 2001 From: Augustin Cavalier Date: Sat, 8 Sep 2018 18:43:44 -0400 Subject: [PATCH] BUrl: Remove HAIKU_TARGET_PLATFORM_HAIKU from main header. These are really only defined during the build of Haiku itself, so we don't want them in a system header. Since none of these functions are virtual, leaving them as declared but not defined should be fine. --- headers/os/support/Url.h | 4 ---- 1 file changed, 4 deletions(-) diff --git a/headers/os/support/Url.h b/headers/os/support/Url.h index f08ec5a7fd..b3416f5c7b 100644 --- a/headers/os/support/Url.h +++ b/headers/os/support/Url.h @@ -64,10 +64,8 @@ public: void UrlEncode(bool strict = false); void UrlDecode(bool strict = false); -#ifdef HAIKU_TARGET_PLATFORM_HAIKU status_t IDNAToAscii(); status_t IDNAToUnicode(); -#endif // Url encoding/decoding of strings static BString UrlEncode(const BString& url, @@ -76,13 +74,11 @@ public: static BString UrlDecode(const BString& url, bool strict = false); -#ifdef HAIKU_TARGET_PLATFORM_HAIKU // utility functionality bool HasPreferredApplication() const; BString PreferredApplication() const; status_t OpenWithPreferredApplication( bool onProblemAskUser = true) const; -#endif // BArchivable members virtual status_t Archive(BMessage* into,