]> git.ipfire.org Git - pakfire.git/commitdiff
_pakfire: Drop constants.h
authorMichael Tremer <michael.tremer@ipfire.org>
Tue, 27 Apr 2021 17:30:02 +0000 (17:30 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Tue, 27 Apr 2021 17:30:02 +0000 (17:30 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Makefile.am
src/_pakfire/_pakfiremodule.c
src/_pakfire/constants.h [deleted file]
src/_pakfire/util.c

index 47661d60be5aaae3b948db001aeebee9f825b086..c61e51859a09f380a4b99320b0e013134eab2d82 100644 (file)
@@ -160,7 +160,6 @@ _pakfire_la_SOURCES = \
        src/_pakfire/_pakfiremodule.c \
        src/_pakfire/archive.c \
        src/_pakfire/archive.h \
-       src/_pakfire/constants.h \
        src/_pakfire/errors.h \
        src/_pakfire/key.c \
        src/_pakfire/key.h \
index b0832c6c7fc535ada7d2f8b230605801d4449cd1..4b1fc4ed046ae2abb7a397684d2d12bc70e4c32f 100644 (file)
 #############################################################################*/
 
 #include <Python.h>
+#include <libintl.h>
 
 #include <pakfire/arch.h>
 
 #include "archive.h"
-#include "constants.h"
 #include "errors.h"
 #include "key.h"
 #include "package.h"
diff --git a/src/_pakfire/constants.h b/src/_pakfire/constants.h
deleted file mode 100644 (file)
index 8d5cbbc..0000000
+++ /dev/null
@@ -1,31 +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 PYTHON_PAKFIRE_CONSTANTS_H
-#define PYTHON_PAKFIRE_CONSTANTS_H
-
-/*
-       Load all required modules for the translation.
-*/
-
-#include <libintl.h>
-#define _(x) gettext(x)
-
-#endif /* PYTHON_PAKFIRE_CONSTANTS_H */
index 3c3c0464f7a14630284ccc4cef90f0c1d83bbacd..94fbfd2871b12340a3d05e8c92de724e4bd6798f 100644 (file)
@@ -28,7 +28,6 @@
 #include <pakfire/packagelist.h>
 #include <pakfire/types.h>
 
-#include "constants.h"
 #include "package.h"
 #include "util.h"