diff options
author | Patrick Griffis <pgriffis@igalia.com> | 2020-01-28 22:51:14 -0800 |
---|---|---|
committer | Patrick Griffis <pgriffis@igalia.com> | 2020-09-19 15:41:24 -0700 |
commit | 91abc80e57e1d849b9e97a48f4101fdd5c75682d (patch) | |
tree | 99c5a6af0d0d1f97e9e28958b3d623a8ce35b740 | |
parent | 3fcaa882c4eb29fd754cdb6dd06195632cb4b52a (diff) | |
download | libsoup-91abc80e57e1d849b9e97a48f4101fdd5c75682d.tar.gz |
Remove deprecated SoupCookieJarSqlite API
-rw-r--r-- | libsoup/soup-cookie-jar-sqlite.c | 49 | ||||
-rw-r--r-- | libsoup/soup-cookie-jar-sqlite.h | 43 |
2 files changed, 0 insertions, 92 deletions
diff --git a/libsoup/soup-cookie-jar-sqlite.c b/libsoup/soup-cookie-jar-sqlite.c deleted file mode 100644 index 705e0478..00000000 --- a/libsoup/soup-cookie-jar-sqlite.c +++ /dev/null @@ -1,49 +0,0 @@ -/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */ -/* - * soup-cookie-jar-sqlite.c: deprecated version of sqlite-based cookie storage - * - * Copyright 2012 Red Hat, Inc. - */ - -#ifdef HAVE_CONFIG_H -#include <config.h> -#endif - -#include <stdlib.h> - -/* Avoid deprecation warnings */ -#define SOUP_VERSION_MIN_REQUIRED SOUP_VERSION_2_40 - -#include "soup.h" -#include "soup-cookie-jar-sqlite.h" - -enum { - PROP_0, - - PROP_FILENAME, - - LAST_PROP -}; - -G_DEFINE_TYPE (SoupCookieJarSqlite, soup_cookie_jar_sqlite, SOUP_TYPE_COOKIE_JAR_DB) - -static void -soup_cookie_jar_sqlite_init (SoupCookieJarSqlite *sqlite) -{ -} - -SoupCookieJar * -soup_cookie_jar_sqlite_new (const char *filename, gboolean read_only) -{ - g_return_val_if_fail (filename != NULL, NULL); - - return g_object_new (SOUP_TYPE_COOKIE_JAR_SQLITE, - SOUP_COOKIE_JAR_SQLITE_FILENAME, filename, - SOUP_COOKIE_JAR_READ_ONLY, read_only, - NULL); -} - -static void -soup_cookie_jar_sqlite_class_init (SoupCookieJarSqliteClass *sqlite_class) -{ -} diff --git a/libsoup/soup-cookie-jar-sqlite.h b/libsoup/soup-cookie-jar-sqlite.h deleted file mode 100644 index 7f0099ee..00000000 --- a/libsoup/soup-cookie-jar-sqlite.h +++ /dev/null @@ -1,43 +0,0 @@ -/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */ -/* - * Copyright (C) 2008 Diego Escalante Urrelo - */ - -#ifndef __SOUP_COOKIE_JAR_SQLITE_H__ -#define __SOUP_COOKIE_JAR_SQLITE_H__ 1 - -#include <libsoup/soup-cookie-jar-db.h> - -G_BEGIN_DECLS - -#define SOUP_TYPE_COOKIE_JAR_SQLITE (soup_cookie_jar_sqlite_get_type ()) -#define SOUP_COOKIE_JAR_SQLITE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SOUP_TYPE_COOKIE_JAR_SQLITE, SoupCookieJarSqlite)) -#define SOUP_COOKIE_JAR_SQLITE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SOUP_TYPE_COOKIE_JAR_SQLITE, SoupCookieJarSqliteClass)) -#define SOUP_IS_COOKIE_JAR_SQLITE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SOUP_TYPE_COOKIE_JAR_SQLITE)) -#define SOUP_IS_COOKIE_JAR_SQLITE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((obj), SOUP_TYPE_COOKIE_JAR_SQLITE)) -#define SOUP_COOKIE_JAR_SQLITE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SOUP_TYPE_COOKIE_JAR_SQLITE, SoupCookieJarSqliteClass)) - -typedef struct { - SoupCookieJarDB parent; - -} SoupCookieJarSqlite; - -typedef struct { - SoupCookieJarDBClass parent_class; - -} SoupCookieJarSqliteClass; - -#define SOUP_COOKIE_JAR_SQLITE_FILENAME "filename" - -SOUP_AVAILABLE_IN_2_26 -SOUP_DEPRECATED_IN_2_42_FOR(soup_cookie_jar_db_get_type) -GType soup_cookie_jar_sqlite_get_type (void); - -SOUP_AVAILABLE_IN_2_26 -SOUP_DEPRECATED_IN_2_42_FOR(soup_cookie_jar_db_new) -SoupCookieJar *soup_cookie_jar_sqlite_new (const char *filename, - gboolean read_only); - -G_END_DECLS - -#endif /* __SOUP_COOKIE_JAR_SQLITE_H__ */ |