Skip to content

Commit

Permalink
remove unused code from hprof parse script
Browse files Browse the repository at this point in the history
Summary: remove urllib2 and call to it, since OSS script is purely for local cmdline

Differential Revision: D3172510

fb-gh-sync-id: b8a19dbdd5e7ccbfa862ba447824b37eff5eeee9
fbshipit-source-id: b8a19dbdd5e7ccbfa862ba447824b37eff5eeee9
  • Loading branch information
David Tarjan authored and Facebook Github Bot 6 committed Apr 13, 2016
1 parent f1e7af8 commit d6c9130
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions tools/hprof/dump_classes_from_hprof.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
import subprocess
import sys
import tempfile
import urllib2

def parse_hprof_dump(instream):
# Read the tag - a null-terminated string
Expand Down Expand Up @@ -53,10 +52,6 @@ def parse_file(instream):
def parse_filename(filename):
return parse_hprof_dump(open(filename, 'rb'))

def parse_url(url):
response = urllib2.urlopen(url)
return parse_hprof_dump(response)

class HprofTag(enum.Enum):
STRING = 0x01
LOAD_CLASS = 0x02
Expand Down

0 comments on commit d6c9130

Please sign in to comment.