aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJosé Bollo <jose.bollo@iot.bzh>2016-09-12 15:21:19 +0200
committerJosé Bollo <jose.bollo@iot.bzh>2016-09-12 15:21:19 +0200
commit1840ae0c704640319f52706fc72e881a2bae6afd (patch)
tree9fceea9974efe14e7ff14eaf1225d28f423f9540
parent66155de48c685b29d96ca95bc1a45078f8f4c681 (diff)
cleanup of the code
The lines removed were not used and were in conflict with future developements. Change-Id: Ib1cc2d4e8ef18b37f9b68066258d002062db4eb6 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
-rw-r--r--src/wgtpkg-permissions.c8
-rw-r--r--src/wgtpkg-permissions.h1
2 files changed, 0 insertions, 9 deletions
diff --git a/src/wgtpkg-permissions.c b/src/wgtpkg-permissions.c
index c341054..dcee645 100644
--- a/src/wgtpkg-permissions.c
+++ b/src/wgtpkg-permissions.c
@@ -32,18 +32,10 @@ struct permission {
unsigned level: 3;
};
-static const char prefix_of_permissions[] = FWK_PREFIX_PERMISSION;
-
static unsigned int nrpermissions = 0;
static struct permission *permissions = NULL;
static unsigned int indexiter = 0;
-/* check is the name has the correct prefix for permissions */
-int is_standard_permission(const char *name)
-{
- return 0 == memcmp(name, prefix_of_permissions, sizeof(prefix_of_permissions) - 1);
-}
-
/* retrieves the permission of name */
static struct permission *get_permission(const char *name)
{
diff --git a/src/wgtpkg-permissions.h b/src/wgtpkg-permissions.h
index 5c44974..eb1d500 100644
--- a/src/wgtpkg-permissions.h
+++ b/src/wgtpkg-permissions.h
@@ -16,7 +16,6 @@
limitations under the License.
*/
-extern int is_standard_permission(const char *name);
extern void reset_permissions();
extern void reset_requested_permissions();
extern void crop_permissions(unsigned level);