summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrbuj <[email protected]>2021-10-27 17:44:02 +0200
committerraveit65 <[email protected]>2021-12-11 15:10:30 +0100
commitd62e9a237dec28fce759dfc7037c0da648beb75d (patch)
treee60a89c1d95b3059d0b575e54173d74fbd382539
parent8111a1ed0860beddc58e7f5334b987ef477557fc (diff)
downloadlibmateweather-d62e9a237dec28fce759dfc7037c0da648beb75d.tar.bz2
libmateweather-d62e9a237dec28fce759dfc7037c0da648beb75d.tar.xz
Use a blank line at most
-rw-r--r--libmateweather/mateweather-location.c1
-rw-r--r--libmateweather/mateweather-prefs.h2
-rw-r--r--libmateweather/weather-met.c1
-rw-r--r--libmateweather/weather-moon.c1
-rw-r--r--libmateweather/weather-priv.h1
-rw-r--r--libmateweather/weather-sun.c4
-rw-r--r--libmateweather/weather.c5
-rw-r--r--libmateweather/weather.h3
8 files changed, 0 insertions, 18 deletions
diff --git a/libmateweather/mateweather-location.c b/libmateweather/mateweather-location.c
index 30d33bd..da5fc8f 100644
--- a/libmateweather/mateweather-location.c
+++ b/libmateweather/mateweather-location.c
@@ -502,7 +502,6 @@ mateweather_location_get_children (MateWeatherLocation *loc)
return &no_children;
}
-
/**
* mateweather_location_free_children:
* @loc: a #MateWeatherLocation
diff --git a/libmateweather/mateweather-prefs.h b/libmateweather/mateweather-prefs.h
index c7a3743..5bd55cb 100644
--- a/libmateweather/mateweather-prefs.h
+++ b/libmateweather/mateweather-prefs.h
@@ -19,12 +19,10 @@
#ifndef __MATEWEATHER_PREFS_H_
#define __MATEWEATHER_PREFS_H_
-
#ifndef MATEWEATHER_I_KNOW_THIS_IS_UNSTABLE
#error "libmateweather should only be used if you understand that it's subject to change, and is not supported as a fixed API/ABI or as part of the platform"
#endif
-
#include <libmateweather/weather.h>
#include <gio/gio.h>
diff --git a/libmateweather/weather-met.c b/libmateweather/weather-met.c
index 815a364..164e9f2 100644
--- a/libmateweather/weather-met.c
+++ b/libmateweather/weather-met.c
@@ -112,7 +112,6 @@ met_reprocess (char *x, int len)
return buf;
}
-
/*
* Parse the metoffice forecast info.
* For mate 3.0 we want to just embed an HTML matecomponent component and
diff --git a/libmateweather/weather-moon.c b/libmateweather/weather-moon.c
index 1541efc..feb98ba 100644
--- a/libmateweather/weather-moon.c
+++ b/libmateweather/weather-moon.c
@@ -137,7 +137,6 @@ calc_moon (WeatherInfo *info)
return TRUE;
}
-
/**
* calc_moon_phases:
* @info: WeatherInfo containing the time_t of interest
diff --git a/libmateweather/weather-priv.h b/libmateweather/weather-priv.h
index 08c828e..817f13c 100644
--- a/libmateweather/weather-priv.h
+++ b/libmateweather/weather-priv.h
@@ -35,7 +35,6 @@ const char *mateweather_dpgettext (const char *context, const char *str) G_GNUC_
#define C_(context, str) (mateweather_dpgettext (context, str))
#define N_(str) (str)
-
#define WEATHER_LOCATION_CODE_LEN 4
WeatherLocation *mateweather_location_to_weather_location (MateWeatherLocation *gloc,
diff --git a/libmateweather/weather-sun.c b/libmateweather/weather-sun.c
index 0c2f708..3db5526 100644
--- a/libmateweather/weather-sun.c
+++ b/libmateweather/weather-sun.c
@@ -146,7 +146,6 @@ gstObsv (gdouble ra, gdouble decl,
*rise = b;
}
-
static gdouble
t0 (time_t date)
{
@@ -157,7 +156,6 @@ t0 (time_t date)
return t0;
}
-
static gboolean
calc_sun2 (WeatherInfo *info, time_t t)
{
@@ -285,7 +283,6 @@ calc_sun2 (WeatherInfo *info, time_t t)
return (info->sunriseValid || info->sunsetValid);
}
-
/**
* calc_sun_time:
* @info: #WeatherInfo structure containing the observer's latitude
@@ -313,7 +310,6 @@ calc_sun (WeatherInfo *info)
return calc_sun_time(info, time(NULL));
}
-
/**
* weather_info_next_sun_event:
* @info: #WeatherInfo structure
diff --git a/libmateweather/weather.c b/libmateweather/weather.c
index 3b7642b..86453fc 100644
--- a/libmateweather/weather.c
+++ b/libmateweather/weather.c
@@ -50,7 +50,6 @@
static void _weather_internal_check (void);
-
static inline void
mateweather_gettext_init (void)
{
@@ -267,7 +266,6 @@ weather_sky_string (WeatherSky sky)
return _(sky_str[(int)sky]);
}
-
/*
* Even though tedious, I switched to a 2D array for weather condition
* strings, in order to facilitate internationalization, esp. for languages
@@ -341,7 +339,6 @@ weather_conditions_string (WeatherConditions cond)
/* Locals turned global to facilitate asynchronous HTTP requests */
-
gboolean
requests_init (WeatherInfo *info)
{
@@ -586,11 +583,9 @@ weather_info_clone (const WeatherInfo *info)
clone = g_new (WeatherInfo, 1);
-
/* move everything */
memmove (clone, info, sizeof (WeatherInfo));
-
/* special moves */
clone->location = weather_location_clone (info->location);
/* This handles null correctly */
diff --git a/libmateweather/weather.h b/libmateweather/weather.h
index 204e095..842975d 100644
--- a/libmateweather/weather.h
+++ b/libmateweather/weather.h
@@ -19,12 +19,10 @@
#ifndef __WEATHER_H_
#define __WEATHER_H_
-
#ifndef MATEWEATHER_I_KNOW_THIS_IS_UNSTABLE
#error "libmateweather should only be used if you understand that it's subject to change, and is not supported as a fixed API/ABI or as part of the platform"
#endif
-
#include <gdk-pixbuf/gdk-pixbuf.h>
#ifdef __cplusplus
@@ -280,7 +278,6 @@ gboolean weather_info_get_value_sunset (WeatherInfo *info, time_t *value);
gboolean weather_info_get_value_moonphase (WeatherInfo *info, WeatherMoonPhase *value, WeatherMoonLatitude *lat);
gboolean weather_info_get_upcoming_moonphases (WeatherInfo *info, time_t *phases);
-
#ifdef __cplusplus
}
#endif