1.1 --- a/imiptools/period.py Wed Oct 28 18:08:40 2015 +0100
1.2 +++ b/imiptools/period.py Thu Oct 29 16:16:44 2015 +0100
1.3 @@ -716,33 +716,6 @@
1.4
1.5 return free
1.6
1.7 -def get_common_periods(all_freebusy):
1.8 -
1.9 - "Return common periods to all collections in the 'all_freebusy' list."
1.10 -
1.11 - if not all_freebusy:
1.12 - return None
1.13 -
1.14 - common = all_freebusy[0]
1.15 -
1.16 - # Intersect periods with the current common set.
1.17 -
1.18 - for freebusy in all_freebusy[1:]:
1.19 - new_common = []
1.20 -
1.21 - # Find the overlapping periods and then obtain the regions that
1.22 - # are common to both sets.
1.23 -
1.24 - for period in freebusy:
1.25 - for overlapping in get_overlapping(common, period):
1.26 - p = period.common(overlapping)
1.27 - if p:
1.28 - new_common.append(p)
1.29 -
1.30 - common = new_common
1.31 -
1.32 - return common
1.33 -
1.34 # Period layout.
1.35
1.36 def get_scale(periods, tzid, view_period=None):