]> git.ipfire.org Git - pakfire.git/commitdiff
libpakfire: Drop system.c
authorMichael Tremer <michael.tremer@ipfire.org>
Sun, 10 Jan 2021 14:59:06 +0000 (14:59 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Sun, 10 Jan 2021 14:59:06 +0000 (14:59 +0000)
Those functions are no longer needed and went into arch.c

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Makefile.am
src/libpakfire/include/pakfire/system.h [deleted file]
src/libpakfire/pakfire.c
src/libpakfire/system.c [deleted file]

index c1360340987c8c1e3412c2b2c615bda48dfa1191..5797ff76ff6bcc607b185e08263fcc140b07255e 100644 (file)
@@ -291,7 +291,6 @@ libpakfire_la_SOURCES = \
        src/libpakfire/selector.c \
        src/libpakfire/solution.c \
        src/libpakfire/step.c \
-       src/libpakfire/system.c \
        src/libpakfire/transaction.c \
        src/libpakfire/util.c
 
@@ -319,7 +318,6 @@ pkginclude_HEADERS += \
        src/libpakfire/include/pakfire/selector.h \
        src/libpakfire/include/pakfire/solution.h \
        src/libpakfire/include/pakfire/step.h \
-       src/libpakfire/include/pakfire/system.h \
        src/libpakfire/include/pakfire/transaction.h \
        src/libpakfire/include/pakfire/types.h \
        src/libpakfire/include/pakfire/util.h
diff --git a/src/libpakfire/include/pakfire/system.h b/src/libpakfire/include/pakfire/system.h
deleted file mode 100644 (file)
index d713714..0000000
+++ /dev/null
@@ -1,26 +0,0 @@
-/*#############################################################################
-#                                                                             #
-# Pakfire - The IPFire package management system                              #
-# Copyright (C) 2017 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_SYSTEM_H
-#define PAKFIRE_SYSTEM_H
-
-const char* system_machine();
-
-#endif /* PAKFIRE_SYSTEM_H */
index 0b5ba63ef8446a6d86899e449b35da8ce2a7beb4..07ff444d3cb5c5b39b577bf7bb3f31f6bc5dfbd0 100644 (file)
@@ -42,7 +42,6 @@
 #include <pakfire/pakfire.h>
 #include <pakfire/private.h>
 #include <pakfire/repo.h>
-#include <pakfire/system.h>
 #include <pakfire/types.h>
 #include <pakfire/util.h>
 
diff --git a/src/libpakfire/system.c b/src/libpakfire/system.c
deleted file mode 100644 (file)
index cdbc30f..0000000
+++ /dev/null
@@ -1,42 +0,0 @@
-/*#############################################################################
-#                                                                             #
-# Pakfire - The IPFire package management system                              #
-# Copyright (C) 2017 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 <string.h>
-#include <sys/utsname.h>
-
-#include <pakfire/constants.h>
-#include <pakfire/system.h>
-#include <pakfire/util.h>
-
-const char* system_machine() {
-    static const char* __system_machine = NULL;
-
-    if (!__system_machine) {
-        struct utsname buf;
-
-        int r = uname(&buf);
-        if (r)
-            return NULL;
-
-        __system_machine = pakfire_strdup(buf.machine);
-    }
-
-    return __system_machine;
-}