update dates of headers
[src/app-framework-main.git] / src / wgtpkg-permissions.c
index c341054..362b1c1 100644 (file)
@@ -1,5 +1,5 @@
 /*
- Copyright 2015 IoT.bzh
+ Copyright 2015, 2016 IoT.bzh
 
  author: José Bollo <jose.bollo@iot.bzh>
 
@@ -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)
 {