From 9a8184ab4ce3a48ef7c38d0f9ca60c768cffc30a Mon Sep 17 00:00:00 2001 From: Ian Wienand Date: Tue, 2 May 2017 14:16:02 +1000 Subject: [PATCH] Remove unused val_else_none This function is unused Change-Id: I8fe3e5452b95a639618a37a02f34b5b9f63ca43a --- diskimage_builder/block_device/__init__.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/diskimage_builder/block_device/__init__.py b/diskimage_builder/block_device/__init__.py index a2bb2b7e..543ad005 100644 --- a/diskimage_builder/block_device/__init__.py +++ b/diskimage_builder/block_device/__init__.py @@ -18,10 +18,6 @@ from diskimage_builder import logging_config import logging -def val_else_none(s): - return s if s is None or len(s) > 0 else None - - def generate_phase_doc(): phase_doc = "" bdattrs = dir(BlockDevice)