diff options
author | Michael Catanzaro <mcatanzaro@igalia.com> | 2016-02-07 22:43:45 -0600 |
---|---|---|
committer | Michael Catanzaro <mcatanzaro@igalia.com> | 2016-02-08 07:16:02 -0600 |
commit | 18dc1e1fc79a9c76c5ce13f34fc8c39cee4bf2dc (patch) | |
tree | eac11ae901a56eeac176b9872c6f4ec01cca3e12 /lib/ephy-time-helpers.h | |
parent | 70bc6b8dc35dcaec955f489fa67e40427f861dd5 (diff) | |
download | epiphany-18dc1e1fc79a9c76c5ce13f34fc8c39cee4bf2dc.tar.gz |
Remove vestiges of public API
It's been gone for years, and it's not coming back. If we support
extensions in the future, it would be via the WebExtensions API.
This makes me less annoyed by having to maintain a meaningless
distinction between installed and non-installed header files (it's been
years since any headers were installed). It also makes me less annoyed
by having to look at meaningless direct-inclusion guards. And finally,
it makes me less annoyed because each time I see those direct-inclusion
guards, I think of how they really ought to be inside the normal include
guards, rather than outside, to avoid breaking GCC and Clang's
optimization to avoid unnecessarily reading the contents of the header
file. (WebKit gets this wrong, too.) You can thank me if this makes
Epiphany compile 0.1s or so faster for you.
There are no useful changes in this commit.
https://bugzilla.gnome.org/show_bug.cgi?id=761698
Diffstat (limited to 'lib/ephy-time-helpers.h')
-rw-r--r-- | lib/ephy-time-helpers.h | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/lib/ephy-time-helpers.h b/lib/ephy-time-helpers.h index ff00c1eec..19a6cac81 100644 --- a/lib/ephy-time-helpers.h +++ b/lib/ephy-time-helpers.h @@ -19,15 +19,11 @@ /* Following code is copied from Rhythmbox rb-cut-and-paste-code.h */ -#include <time.h> - -#if !defined (__EPHY_EPIPHANY_H_INSIDE__) && !defined (EPIPHANY_COMPILATION) -#error "Only <epiphany/epiphany.h> can be included directly." -#endif - #ifndef EPHY_TIME_HELPERS_H #define EPHY_TIME_HELPERS_H +#include <time.h> + G_BEGIN_DECLS char *eel_strdup_strftime (const char *format, |