--- pyanaconda/storage/devicelibs/swap.py | 17 ----------------- 1 files changed, 0 insertions(+), 17 deletions(-) diff --git a/pyanaconda/storage/devicelibs/swap.py b/pyanaconda/storage/devicelibs/swap.py index 0313d8d..c4a46b1 100644 --- a/pyanaconda/storage/devicelibs/swap.py +++ b/pyanaconda/storage/devicelibs/swap.py @@ -166,20 +166,3 @@ def swapSuggestion(quiet=0): return (minswap, maxswap) -def swapAmount(): - """ - Get the total amount of swap memory. - - @return: The total amount of swap memory in kilobytes, or 0 if unknown. - - """ - - f = open("/proc/meminfo", "r") - lines = f.readlines() - f.close() - - for l in lines: - if l.startswith("SwapTotal:"): - fields = l.split() - return int(fields[1]) - return 0 -- 1.7.4.4 _______________________________________________ Anaconda-devel-list mailing list Anaconda-devel-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/anaconda-devel-list