]> git.ipfire.org Git - pakfire.git/commitdiff
libpakfire: Drop filters
authorMichael Tremer <michael.tremer@ipfire.org>
Fri, 23 Apr 2021 14:53:47 +0000 (14:53 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Fri, 23 Apr 2021 14:53:47 +0000 (14:53 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Makefile.am
src/libpakfire/filter.c [deleted file]
src/libpakfire/include/pakfire/filter.h [deleted file]
src/libpakfire/include/pakfire/types.h

index da4f815f053dd814cbf20fe7dd6646724ead8ae4..966faec0b26e2a08178409bc63bc381482eebd13 100644 (file)
@@ -257,7 +257,6 @@ libpakfire_la_SOURCES = \
        src/libpakfire/execute.c \
        src/libpakfire/file.c \
        src/libpakfire/filelist.c \
-       src/libpakfire/filter.c \
        src/libpakfire/key.c \
        src/libpakfire/logging.c \
        src/libpakfire/package.c \
@@ -293,7 +292,6 @@ pkginclude_HEADERS += \
        src/libpakfire/include/pakfire/execute.h \
        src/libpakfire/include/pakfire/file.h \
        src/libpakfire/include/pakfire/filelist.h \
-       src/libpakfire/include/pakfire/filter.h \
        src/libpakfire/include/pakfire/i18n.h \
        src/libpakfire/include/pakfire/key.h \
        src/libpakfire/include/pakfire/logging.h \
diff --git a/src/libpakfire/filter.c b/src/libpakfire/filter.c
deleted file mode 100644 (file)
index e094004..0000000
+++ /dev/null
@@ -1,37 +0,0 @@
-/*#############################################################################
-#                                                                             #
-# Pakfire - The IPFire package management system                              #
-# Copyright (C) 2013 Pakfire development team                                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
-#############################################################################*/
-
-#include <stdlib.h>
-
-#include <pakfire/filter.h>
-#include <pakfire/private.h>
-#include <pakfire/types.h>
-#include <pakfire/util.h>
-
-PAKFIRE_EXPORT PakfireFilter pakfire_filter_create(void) {
-       PakfireFilter filter = calloc(1, sizeof(*filter));
-
-       return filter;
-}
-
-PAKFIRE_EXPORT void pakfire_filter_free(PakfireFilter filter) {
-       free(filter->match);
-       free(filter);
-}
diff --git a/src/libpakfire/include/pakfire/filter.h b/src/libpakfire/include/pakfire/filter.h
deleted file mode 100644 (file)
index 508d55a..0000000
+++ /dev/null
@@ -1,39 +0,0 @@
-/*#############################################################################
-#                                                                             #
-# Pakfire - The IPFire package management system                              #
-# Copyright (C) 2013 Pakfire development team                                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
-#############################################################################*/
-
-#ifndef PAKFIRE_FILTER_H
-#define PAKFIRE_FILTER_H
-
-#include <pakfire/types.h>
-
-PakfireFilter pakfire_filter_create(void);
-void pakfire_filter_free(PakfireFilter filter);
-
-#ifdef PAKFIRE_PRIVATE
-
-struct _PakfireFilter {
-       int cmp_type;
-       int keyname;
-       char* match;
-};
-
-#endif
-
-#endif /* PAKFIRE_FILTER_H */
index f6475ad5701af42bb7d7b0b8e023cf490abb705e..34861aecede001867c6b3f72169fb043153ff5af 100644 (file)
@@ -28,7 +28,6 @@ typedef struct _PakfireArchive* PakfireArchive;
 typedef struct _PakfireArchiveSignature* PakfireArchiveSignature;
 typedef struct _PakfireFile* PakfireFile;
 typedef struct _PakfireFilelist* PakfireFilelist;
-typedef struct _PakfireFilter* PakfireFilter;
 typedef struct _PakfireKey* PakfireKey;
 typedef struct _PakfirePackage* PakfirePackage;
 typedef struct _PakfirePackageList* PakfirePackageList;