From 6af036db19cb5167a6851abb05a309c9ae15c9ca Mon Sep 17 00:00:00 2001 From: pengyuesheng Date: Wed, 26 Jun 2019 16:32:45 +0800 Subject: [PATCH] Remove the get_item method The method of get_item is not used, IMO, we should remove it Change-Id: I4894eec5bddc76126845ed3e21836168554d6ab5 --- manila_ui/utils/filters.py | 21 --------------------- 1 file changed, 21 deletions(-) delete mode 100644 manila_ui/utils/filters.py diff --git a/manila_ui/utils/filters.py b/manila_ui/utils/filters.py deleted file mode 100644 index 55b57a36..00000000 --- a/manila_ui/utils/filters.py +++ /dev/null @@ -1,21 +0,0 @@ -# Copyright 2012 Nebula, Inc. -# -# Licensed under the Apache License, Version 2.0 (the "License"); you may -# not use this file except in compliance with the License. You may obtain -# a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -# License for the specific language governing permissions and limitations -# under the License. - - -from django.template.defaultfilters import register - - -@register.filter -def get_item(dictionary, key): - return dictionary.get(key)