[SSSD] [PATCH] Removing unused header file providers.h

Lukas Slebodnik lslebodn at redhat.com
Tue Mar 12 09:57:38 UTC 2013


Hi,

I found two header files, which are not included in any other file
src/providers/providers.h and src/sss_client/protos.h
First one is removed in attached patch and second one was commented
with "#if 0" more then four years ago. But I am not sure it should be
removed (is it documentation?), therefore is not removed in attached patch.

LS
-------------- next part --------------
>From 1ba5ee0bf18429c61618560b2a5f26fd5e1bf867 Mon Sep 17 00:00:00 2001
From: Lukas Slebodnik <lslebodn at redhat.com>
Date: Mon, 11 Mar 2013 19:35:26 +0100
Subject: [PATCH] Removing unused header file providers.h

Header file "providers.h" is not included in any other
file and function "dp_process_init" declared in this header file
has no implementation.
---
 Makefile.am               |  1 -
 src/providers/providers.h | 24 ------------------------
 2 files changed, 25 deletions(-)
 delete mode 100644 src/providers/providers.h

diff --git a/Makefile.am b/Makefile.am
index 67e2bd1fb368e4472d5f6f816033ec7d81fc75d8..5c5d75bf9363e749779e5c692e9bb35af5daffb4 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -421,7 +421,6 @@ dist_noinst_HEADERS = \
     src/providers/data_provider.h \
     src/providers/dp_backend.h \
     src/providers/fail_over.h \
-    src/providers/providers.h \
     src/util/child_common.h \
     src/providers/simple/simple_access.h \
     src/providers/krb5/krb5_auth.h \
diff --git a/src/providers/providers.h b/src/providers/providers.h
deleted file mode 100644
index 44e7028ab96e440bbb8f156c39eba535db1d876e..0000000000000000000000000000000000000000
--- a/src/providers/providers.h
+++ /dev/null
@@ -1,24 +0,0 @@
-/*
-   SSSD
-
-   Data Provider, public header file
-
-   Copyright (C) Simo Sorce <ssorce at redhat.com>	2008
-
-   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/>.
-*/
-
-int dp_process_init(TALLOC_CTX *mem_ctx,
-                    struct tevent_context *ev,
-                    struct confdb_ctx *cdb);
-- 
1.8.1.4



More information about the sssd-devel mailing list