Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(52)

Unified Diff: third_party/WebKit/Tools/Scripts/webkitpy/common/system/user.py

Issue 2901963002: Remove unused methods from common.system.User. (Closed)
Patch Set: Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | third_party/WebKit/Tools/Scripts/webkitpy/common/system/user_mock.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Tools/Scripts/webkitpy/common/system/user.py
diff --git a/third_party/WebKit/Tools/Scripts/webkitpy/common/system/user.py b/third_party/WebKit/Tools/Scripts/webkitpy/common/system/user.py
index d4b6ba99b0028be4c0459987073f27a60c8dfe23..695082a9d9b05dfa0facbcf6f9b369a1241c6d6b 100644
--- a/third_party/WebKit/Tools/Scripts/webkitpy/common/system/user.py
+++ b/third_party/WebKit/Tools/Scripts/webkitpy/common/system/user.py
@@ -26,13 +26,9 @@
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-import getpass
import logging
-import os
import platform
import re
-import shlex
-import subprocess
import sys
import webbrowser
@@ -63,23 +59,6 @@ class User(object):
return response
@classmethod
- def prompt_password(cls, message, repeat=1):
- return cls.prompt(message, repeat=repeat, raw_input=getpass.getpass)
-
- @classmethod
- def prompt_with_multiple_lists(cls, list_title, subtitles, lists, can_choose_multiple=False, raw_input=raw_input):
- item_index = 0
- cumulated_list = []
- print list_title
- for i in range(len(subtitles)):
- print '\n' + subtitles[i]
- for item in lists[i]:
- item_index += 1
- print '%2d. %s' % (item_index, item)
- cumulated_list += lists[i]
- return cls._wait_on_list_response(cumulated_list, can_choose_multiple, raw_input)
-
- @classmethod
def _wait_on_list_response(cls, list_items, can_choose_multiple, raw_input):
while True:
if can_choose_multiple:
@@ -116,21 +95,6 @@ class User(object):
print '%2d. %s' % (i, item)
return cls._wait_on_list_response(list_items, can_choose_multiple, raw_input)
- def edit(self, files):
- editor = os.environ.get('EDITOR') or 'vi'
- args = shlex.split(editor)
- # Note: Not thread safe: http://bugs.python.org/issue2320
- subprocess.call(args + files)
-
- def page(self, message):
- pager = os.environ.get('PAGER') or 'less'
- try:
- # Note: Not thread safe: http://bugs.python.org/issue2320
- child_process = subprocess.Popen([pager], stdin=subprocess.PIPE)
- child_process.communicate(input=message)
- except IOError:
- pass
-
def confirm(self, message=None, default=DEFAULT_YES, raw_input=raw_input):
if not message:
message = 'Continue?'
« no previous file with comments | « no previous file | third_party/WebKit/Tools/Scripts/webkitpy/common/system/user_mock.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698