From 204b5af04e9919eb112eb04d216e570c065458cb Mon Sep 17 00:00:00 2001 From: liu-sheng Date: Wed, 12 Aug 2015 16:24:13 +0800 Subject: [PATCH] Remove the unused cpu_count utils method Change-Id: I164fef6094f0cab47eaeef2b920cb535194f8e2a --- aodh/utils.py | 8 -------- 1 file changed, 8 deletions(-) diff --git a/aodh/utils.py b/aodh/utils.py index 948994eb3..f0df78d53 100644 --- a/aodh/utils.py +++ b/aodh/utils.py @@ -24,7 +24,6 @@ import copy import datetime import decimal import hashlib -import multiprocessing import struct from oslo_utils import timeutils @@ -162,13 +161,6 @@ def update_nested(original_dict, updates): return dict_to_update -def cpu_count(): - try: - return multiprocessing.cpu_count() or 1 - except NotImplementedError: - return 1 - - class HashRing(object): def __init__(self, nodes, replicas=100):