[apparmor] [patch] Drop unused function split_name() in aa.py

Kshitij Gupta kgupta8592 at gmail.com
Sun Feb 21 18:16:35 UTC 2016


On Sun, Feb 21, 2016 at 8:16 PM, Christian Boltz <apparmor at cboltz.de> wrote:

> Hello,
>
> $subject.
>
>
> [ 74-drop-unused-split_name.diff ]
>
> === modified file 'utils/apparmor/aa.py'
> --- utils/apparmor/aa.py        2016-02-20 12:32:36 +0000
> +++ utils/apparmor/aa.py        2016-02-21 14:43:21 +0000
> @@ -4317,12 +4317,6 @@
>      else:
>          return '%s^%s' % (name1, name2)
>
> -def split_name(name):
> -    names = name.split('^')
> -    if len(names) == 1:
> -        return name, name
> -    else:
> -        return names[0], names[1]
>  def commonprefix(new, old):
>      match = re.search(r'^([^\0]*)[^\0]*(\0\1[^\0]*)*$', '\0'.join([new,
> old]))
>      if match:
>
> Verified with grep.

Acked-by: Kshitij Gupta <kgupta8592 at gmail.com>

>
> Regards,
>
> Christian Boltz
> --
> NO' and 'YES' are short words which need long thoughts.
> Most of the troubles in life are the result of saying
> 'YES' too soon or 'NO' too late !!!
>
> --
> AppArmor mailing list
> AppArmor at lists.ubuntu.com
> Modify settings or unsubscribe at:
> https://lists.ubuntu.com/mailman/listinfo/apparmor
>
>


-- 
Regards,

Kshitij Gupta
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/apparmor/attachments/20160221/dd4c4425/attachment.html>


More information about the AppArmor mailing list