[PATCH 2/3] Remove swapAmount since it is not used anywhere

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



---
 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 512b648..28cd8db 100644
--- a/pyanaconda/storage/devicelibs/swap.py
+++ b/pyanaconda/storage/devicelibs/swap.py
@@ -164,20 +164,3 @@ def swapSuggestion(quiet=False, hibernation=False):
 
     return swap
 
-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


[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux